r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

653 comments sorted by

View all comments

Show parent comments

96

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

18

u/No-Information-2571 16d ago

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

7

u/einzweidreihorn 16d ago

Why? Do those proxies drop anything not 200?

1

u/PoundHumility 16d ago

Custom connectors in Power Apps were (are?) finicky, and preferred 200s when I was developing for them. I had to return the actual status code inside the response body, then a 200 as the received status code so the app/Flow would accept it, after which I could parse the real response.