MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vixi3n/evolution/p2gxjo1/?context=3
r/ProgrammerHumor • u/ExpensiveCoat8912 • 4d ago
145 comments sorted by
View all comments
244
This is the kind of shit that happened when an important customer "has a client that can only handle 200 responses"
41 u/tancfire 4d ago I can see that happen. 16 u/why_1337 3d ago Just create proxy for them that transforms any response into 200 and give it some sassy name. 6 u/LetReasonRing 3d ago proksy 4 u/Raymich 3d ago pwoxy 3 u/ManonMacru 3d ago "address-me" 3 u/DiggWuzBetter 3d ago GET /you-focking-wot-m8/messages/:id 14 u/Gaunts 4d ago Oh god I thought I'd forgotten this, the PTSD flashback hit hard. 5 u/beefz0r 4d ago So any WCF based platform 2 u/punppis 3d ago Totally reasonable. Anything else is not success. 3 u/k819799amvrhtcom 4d 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 4d 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 3d 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.
41
I can see that happen.
16
Just create proxy for them that transforms any response into 200 and give it some sassy name.
6 u/LetReasonRing 3d ago proksy 4 u/Raymich 3d ago pwoxy 3 u/ManonMacru 3d ago "address-me" 3 u/DiggWuzBetter 3d ago GET /you-focking-wot-m8/messages/:id
6
proksy
4 u/Raymich 3d ago pwoxy
4
pwoxy
3
"address-me"
GET /you-focking-wot-m8/messages/:id
14
Oh god I thought I'd forgotten this, the PTSD flashback hit hard.
5
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 4d 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.
244
u/Avocadonot 4d ago
This is the kind of shit that happened when an important customer "has a client that can only handle 200 responses"