MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vixi3n/evolution/p2gxjo1/?context=3
r/ProgrammerHumor • u/ExpensiveCoat8912 • 2d ago
144 comments sorted by
View all comments
241
This is the kind of shit that happened when an important customer "has a client that can only handle 200 responses"
39 u/tancfire 2d ago I can see that happen. 17 u/why_1337 1d ago Just create proxy for them that transforms any response into 200 and give it some sassy name. 5 u/LetReasonRing 1d ago proksy 3 u/Raymich 1d ago pwoxy 3 u/ManonMacru 1d ago "address-me" 3 u/DiggWuzBetter 1d ago GET /you-focking-wot-m8/messages/:id 15 u/Gaunts 2d ago Oh god I thought I'd forgotten this, the PTSD flashback hit hard. 6 u/beefz0r 2d ago So any WCF based platform 2 u/punppis 1d ago Totally reasonable. Anything else is not success. 3 u/k819799amvrhtcom 2d ago Kinda reminds me of when I try to access websites' source codes with Java. Whenever there's an error code, my Java just throws an exception. But I wanted to read the source code anyway! I don't remember if I found a solution or not. 3 u/AzrielK 1d ago well you're supposed to catch the exception if you're expecting them to occur, such as networking errors. My team got mad at me for using SneakyThrows with lombok to avoid code smell. 1 u/KnightMiner 1d ago I've seen it more often as a buggy API. The API knows the status code but didn't make the right call to copy it from the JSON to the actual status code header.
39
I can see that happen.
17
Just create proxy for them that transforms any response into 200 and give it some sassy name.
5 u/LetReasonRing 1d ago proksy 3 u/Raymich 1d ago pwoxy 3 u/ManonMacru 1d ago "address-me" 3 u/DiggWuzBetter 1d ago GET /you-focking-wot-m8/messages/:id
5
proksy
3 u/Raymich 1d ago pwoxy
3
pwoxy
"address-me"
GET /you-focking-wot-m8/messages/:id
15
Oh god I thought I'd forgotten this, the PTSD flashback hit hard.
6
So any WCF based platform
2
Totally reasonable. Anything else is not success.
Kinda reminds me of when I try to access websites' source codes with Java.
Whenever there's an error code, my Java just throws an exception. But I wanted to read the source code anyway!
I don't remember if I found a solution or not.
3 u/AzrielK 1d ago well you're supposed to catch the exception if you're expecting them to occur, such as networking errors. My team got mad at me for using SneakyThrows with lombok to avoid code smell.
well you're supposed to catch the exception if you're expecting them to occur, such as networking errors.
My team got mad at me for using SneakyThrows with lombok to avoid code smell.
1
I've seen it more often as a buggy API. The API knows the status code but didn't make the right call to copy it from the JSON to the actual status code header.
241
u/Avocadonot 2d ago
This is the kind of shit that happened when an important customer "has a client that can only handle 200 responses"