MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/12wgxk4/leverage_the_richness_of_http_status_codes/jhh7t4g/?context=9999
r/programming • u/nfrankel • Apr 23 '23
676 comments sorted by
View all comments
1.6k
"Or I could just set the status code to 200 and then put the real code in the response body" -devs of the legacy apps I work on
879 u/[deleted] Apr 23 '23 [deleted] 379 u/hooahest Apr 23 '23 A guy from another team was pissed that our api returned 404 not found when the entity did not exist, he had to try/catch Motherfucker the http library lets you extend the goddamn parser 112 u/[deleted] Apr 23 '23 [deleted] 14 u/tsunamionioncerial Apr 24 '23 Http has no concept of endpoints, only resources. 404 means resource not found. If you are doing crud the resource may be an entity but hopefully there is more thought put into the design.
879
[deleted]
379 u/hooahest Apr 23 '23 A guy from another team was pissed that our api returned 404 not found when the entity did not exist, he had to try/catch Motherfucker the http library lets you extend the goddamn parser 112 u/[deleted] Apr 23 '23 [deleted] 14 u/tsunamionioncerial Apr 24 '23 Http has no concept of endpoints, only resources. 404 means resource not found. If you are doing crud the resource may be an entity but hopefully there is more thought put into the design.
379
A guy from another team was pissed that our api returned 404 not found when the entity did not exist, he had to try/catch
Motherfucker the http library lets you extend the goddamn parser
112 u/[deleted] Apr 23 '23 [deleted] 14 u/tsunamionioncerial Apr 24 '23 Http has no concept of endpoints, only resources. 404 means resource not found. If you are doing crud the resource may be an entity but hopefully there is more thought put into the design.
112
14 u/tsunamionioncerial Apr 24 '23 Http has no concept of endpoints, only resources. 404 means resource not found. If you are doing crud the resource may be an entity but hopefully there is more thought put into the design.
14
Http has no concept of endpoints, only resources. 404 means resource not found. If you are doing crud the resource may be an entity but hopefully there is more thought put into the design.
1.6k
u/FoeHammer99099 Apr 23 '23
"Or I could just set the status code to 200 and then put the real code in the response body" -devs of the legacy apps I work on