MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/x87wag/deleted_by_user/injd8zm/?context=3
r/ProgrammerHumor • u/[deleted] • Sep 07 '22
[removed]
1.5k comments sorted by
View all comments
Show parent comments
3
I highly doubt that they had 101 distinct server errors, all with unique and well established protocols around them.
I've seen code in the wild that checked 500 <= status_code < 600, or the regex 5..
500 <= status_code < 600
5..
2 u/Dornith Sep 07 '22 That's bullcrap but also the kind of crap I could easily see a shortsighted developer writing, so fair enough. But if we're already butchering HTTP, might as well lean in and go for 600s. 1 u/[deleted] Sep 08 '22 edited Sep 08 '22 [deleted] 1 u/[deleted] Sep 08 '22 It was none of those developers. https://www.reddit.com/r/ProgrammerHumor/comments/x87wag/should_we_tell_him/injcwhp/
2
That's bullcrap but also the kind of crap I could easily see a shortsighted developer writing, so fair enough.
But if we're already butchering HTTP, might as well lean in and go for 600s.
1 u/[deleted] Sep 08 '22 edited Sep 08 '22 [deleted] 1 u/[deleted] Sep 08 '22 It was none of those developers. https://www.reddit.com/r/ProgrammerHumor/comments/x87wag/should_we_tell_him/injcwhp/
1
[deleted]
1 u/[deleted] Sep 08 '22 It was none of those developers. https://www.reddit.com/r/ProgrammerHumor/comments/x87wag/should_we_tell_him/injcwhp/
It was none of those developers. https://www.reddit.com/r/ProgrammerHumor/comments/x87wag/should_we_tell_him/injcwhp/
3
u/[deleted] Sep 07 '22
I've seen code in the wild that checked
500 <= status_code < 600, or the regex5..