Timeline for When to use HTTP status code 404 in an API
Current License: CC BY-SA 3.0
31 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 9, 2020 at 19:46 | history | protected | gnat | ||
Mar 9, 2020 at 15:52 | answer | added | Dave | timeline score: 0 | |
Apr 11, 2018 at 21:32 | history | tweeted | twitter.com/StackSoftEng/status/984182501982777346 | ||
Oct 13, 2014 at 18:21 | vote | accept | Loïc Faure-Lacroix | ||
Jul 28, 2013 at 2:53 | answer | added | Neil McGuigan | timeline score: 3 | |
Jul 10, 2013 at 10:20 | answer | added | user90766 | timeline score: 0 | |
Jul 3, 2013 at 7:13 | comment | added | Carlos Campderrós | Great, now the discussion has shifted from your work to the internets! It is unstoppable now! | |
Jul 3, 2013 at 6:55 | answer | added | Despertar | timeline score: 1 | |
S Jul 3, 2013 at 6:34 | history | suggested | Marcel | CC BY-SA 3.0 |
added tags and clarified title
|
Jul 3, 2013 at 6:01 | review | Suggested edits | |||
S Jul 3, 2013 at 6:34 | |||||
Jul 3, 2013 at 5:29 | answer | added | Ilmari Karonen | timeline score: 6 | |
Jul 3, 2013 at 4:07 | answer | added | modernserf | timeline score: 3 | |
Jul 3, 2013 at 2:44 | comment | added | Caleb | What's the difference between a missing tree and an empty tree? Also, as a network client, shouldn't your code look for errors and handle unexpected/malformed responses gracefully? | |
Jul 3, 2013 at 0:44 | answer | added | Andres F. | timeline score: 9 | |
Jul 3, 2013 at 0:16 | answer | added | imel96 | timeline score: 16 | |
Jul 3, 2013 at 0:07 | comment | added | Loïc Faure-Lacroix | It will return either the closest revision to a date or empty with 200 for an invalid id. | |
Jul 3, 2013 at 0:05 | history | edited | Loïc Faure-Lacroix | CC BY-SA 3.0 |
added 269 characters in body
|
Jul 3, 2013 at 0:04 | comment | added | user69037 |
Still in both cases the question holds. What should /GoalTree/GetById?versionId=CompletelyInvalidID return? Not success, as the resource named /GoalTree/GetById?versionId=CompletelyInvalidID was literally not found.
|
|
Jul 3, 2013 at 0:02 | comment | added | Loïc Faure-Lacroix |
@LegoStormtroopr Sadly no, I made a mistake, The urls are now /GoalTree/GetByDate?versionDate=... and /GoalTree/GetById?versionId=... .
|
|
Jul 2, 2013 at 23:58 | history | edited | Loïc Faure-Lacroix | CC BY-SA 3.0 |
added 269 characters in body
|
Jul 2, 2013 at 23:57 | comment | added | user69037 |
That makes things easier, what should happen if I request /GoalTree/Get?versionDate=2000BC ? If no tree is returned, that tree is... not found.
|
|
Jul 2, 2013 at 23:53 | comment | added | Loïc Faure-Lacroix |
Well there are more problems about the url scheme, the current url is /GoalTree/Get id isn't necessary because there is only one tree for an organization but revsions for that tree are accessible using /GoalTree/Get?versionDate=... .
|
|
Jul 2, 2013 at 23:48 | comment | added | imel96 | It'd be clearer if you give the URIs for the resource you're trying to access. If it's /goals/ you return 200 and empty set. If you're trying to access /goals/{goal_id} then you return 404. If you returned 404 for request for /goals/, it means that the URI doesn't exist and shouldn't be used anymore. | |
Jul 2, 2013 at 23:48 | comment | added | Loïc Faure-Lacroix | It can't work without the tree. It's more or less like having a car without seats and a motor. Enough to enter it but once you're in... You can only get out. I can handle the errors on my side but that's not the question. It's more or less like saying that a car shouldn't explode because no motor and no seats are present. But it any case the car will never work. | |
Jul 2, 2013 at 23:46 | history | edited | Loïc Faure-Lacroix | CC BY-SA 3.0 |
added 138 characters in body
|
Jul 2, 2013 at 23:45 | review | Close votes | |||
Jul 3, 2013 at 17:32 | |||||
Jul 2, 2013 at 23:40 | comment | added | Andres F. | I understand, but should the system handle the null/missing tree nicely? Can the system work without the tree? Shouldn't it simply crash (or fail to start up) with an error message? Or is the expected behavior that sometimes the tree is missing? | |
Jul 2, 2013 at 23:37 | comment | added | Loïc Faure-Lacroix | Well the code wasn't checking for a null, and was parsing a json string and as an object. At some place in the code, the object that "is" loaded is not present because it can't be found internally. | |
Jul 2, 2013 at 23:30 | comment | added | Andres F. | Please clarify: how can the application fall apart when there is no tree, if there is always a tree by precondition? (I do agree with you it looks like a 404) | |
Jul 2, 2013 at 23:24 | answer | added | user69037 | timeline score: 104 | |
Jul 2, 2013 at 23:14 | history | asked | Loïc Faure-Lacroix | CC BY-SA 3.0 |