Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
asgs112755y@olback that's correct. But you know people abuse status codes.
1. 200 OK with a response body having an isError flag to indicate whether it truly succeeded or not.
2. 404 for unauthorized endpoint invocations
3. 400 for too many requests
4. 503 for internal server errors
There may be even more -
@olback You are such a summer child. Yes, one would think that an error should never have 200 OK. Yet I have seen things, I'd rather unsee.
-
cst199220555y@asgs My old company (startup) used to do that; returning 200 and having an error code on top. I hated it.
Related Rants
http 500 internal server error
joke/meme
funny
500 error