News for hackers. Stuff that matters.
Re:API Design Guide by johnjuuljensen on Wednesday February 22, 2017 @03:00PM (#13708667)
Yes, an additional 4xx code to help differentiate between api endpoints and resources would be nice.

I didn't mean to imply that HTTP status codes could stand alone as error messages, so for a 404 error I'd also respond with more data, to help the user identify the issue.

Re:API Design Guide by justinsaccount on Wednesday February 22, 2017 @03:14PM (#13708770)
Yeah.. The bigger issue with this app is that it responds with a default apache 404 page instead of a 404 code + its usual xml response.
Re:API Design Guide by eveningcoffee on Wednesday February 22, 2017 @06:07PM (#13710131)
I think that this example illustrates why parent mentioned that this is a trap.