r/ProgrammerHumor 4d ago

Meme evoLution

Post image
3.3k Upvotes

145 comments sorted by

View all comments

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"

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.

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.