CodeSOD: Sdrawkcab Error Handling
The Daily WTF
JUNE 23, 2024
When interacting with RESTful web services, there's a depressingly common anti-pattern: always return status 200 OK , but embed a more meaningful status code in the body of the response. Frequently, the embedded status code is just the HTTP status code you should have returned in the first place. This "fixes" situations where you have badly behaving clients that don't do proper error handling, but also breaks the entire point of doing REST.
Let's personalize your content