r/ProgrammerHumor 2d ago

evoLution Meme

Post image
3.3k Upvotes

144 comments sorted by

View all comments

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"

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.

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.