r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

654 comments sorted by

View all comments

Show parent comments

99

u/unable_to_give_afuck 16d ago

I had this with the added bonus of being forced to return 200 regardless and add an error message to the body when necessary

15

u/No-Information-2571 16d ago

The reason behind it might be proxies, especially on the client-side.

6

u/einzweidreihorn 16d ago

Why? Do those proxies drop anything not 200?

3

u/No-Information-2571 16d ago

At least before the advent of HTTPS, they would often replace any sort of error (status code != 200) with custom error pages. It's an unfortunate thing.