Re:Hacker News API doesn't obey RFC 4627
by MalcolmDiggs on Wednesday October 08, 2014 @04:10PM
(#8429176)
I'm more surprised that they're returning a 200 when an item doesn't exist. If they'd just return a 404, per usual, the content of the body wouldn't really matter. (in my opinion)
[ Parent
| on HN ]
Re:Hacker News API doesn't obey RFC 4627
by davismwfl on Wednesday October 08, 2014 @08:34PM
(#8430193)
I would argue a 404 is not proper in this case and a 200 is more correct and valid.
The URI exists, the requested record/document does not, hence the successful response with no return.
Re:Hacker News API doesn't obey RFC 4627
by MalcolmDiggs on Thursday October 09, 2014 @12:37AM
(#8430853)
That's an interesting way to look at it. I can definitely see your point, thank you.