Hacker News new | ask | show | jobs
by nuncanada 1941 days ago
I have been bitten by this really bad idea of reusing HTTP CODE for application problems. The server was 404 itself instead of the application.

It is a bad engineering idea to reuse HTTP codes that can be thrown by multiple intermediaries confusing the client code.

1 comments

Where I work everything internal is a 503. Put a parameter out of range, or supply an ID not in the database? That's a server side exception. It's very frustrating even with a stack trace because I don't work on that code.