DEV Community

Discussion on: Create Reliable & Easy-to-use APIs with API First Design

Collapse
 
raphael_jambalos profile image
Raphael Jambalos

Hi Rob! I totally agree with you! When I did API testing for a client, it really annoyed me to see all of their APIs returned HTTP 200, even if there was an error! They just use the presence of the key "error_message" on the response to communicate that there was an error.

I think this is a complete waste of the HTTP code functionality and how a lot of HTTP clients are already preconfigured to handle 200s, 300s, 400s, and 500s differently.