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
-
Voxera115853yThis is not to uncommon
Before REST like apis became the norm it was normal that you never manually triggered http errors for your internal problems in apis since you return an error object the client would handle.
Some older http clients would not process the payload of 4xx or 5xx returns so a 200 with an error was the most reliable way to actually return details of the error.
But its been more than 15 years since that really still was a problem ;) -
@Voxera cross-origin requests handle 5XX as a network error AFAIK, but 4XX are now returned to the application code in pretty much all cases.
Related Rants
-
devoutpost14HTTP response code cheat sheet (From /r/Programmer humor)
-
alexjamesbrown17Status code: 200 Content-Type: application/json Body: {"error": true, "responseCode":400 }
-
arturgrigio13You see a web, I see: CLIENT: TCP SYN SERVER: TCP SYN ACK CLIENT: HTTP Get SERVER: HTTP Response ... CLIENT...
Twitch returning errors with 200 status code
WHY
ARE
YOU
WRITING
CODE
rant
status codes
twitch
http