Hacker News new | ask | show | jobs
by johnjuuljensen 3573 days ago
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.

2 comments

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.
I think that this example illustrates why parent mentioned that this is a trap.