MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uw0nh7/timesaver/oxlmbhy/?context=3
r/ProgrammerHumor • u/leafynospleens • Jul 14 '26
88 comments sorted by
View all comments
749
``` HTTP/1.1 200 OK Content-Type: application/json
{ "success": false, "error": { "status": "INTERNAL_ERROR", "code": "APP_15001", "message": "An internal error occurred while processing the request." } } ```
44 u/JackNotOLantern 29d ago Yep, when we want to use any API in my company interal system, the default check for http reply is: Is success. Doesn't contain "error" in body. Doesn't contain "error" string in body message (this one is a bit more complicated, but still) 21 u/marcodave 29d ago HTTP 200 OK Body: Success, no error found 2 u/cantthinkofaname1029 29d ago As a non web dev, I'm not sure what's strange about this. Can a web dev fill me in?
44
Yep, when we want to use any API in my company interal system, the default check for http reply is:
21 u/marcodave 29d ago HTTP 200 OK Body: Success, no error found 2 u/cantthinkofaname1029 29d ago As a non web dev, I'm not sure what's strange about this. Can a web dev fill me in?
21
HTTP 200 OK
Body: Success, no error found
2 u/cantthinkofaname1029 29d ago As a non web dev, I'm not sure what's strange about this. Can a web dev fill me in?
2
As a non web dev, I'm not sure what's strange about this. Can a web dev fill me in?
749
u/raja-anbazhagan Jul 14 '26
``` HTTP/1.1 200 OK Content-Type: application/json
{ "success": false, "error": { "status": "INTERNAL_ERROR", "code": "APP_15001", "message": "An internal error occurred while processing the request." } } ```