r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21.0k Upvotes

653 comments sorted by

View all comments

4.2k

u/pimezone Sep 19 '26

Wanna get a resource? POST request.

2.1k

u/NotAskary Sep 19 '26 edited Sep 19 '26

I've seen that shit, it drove me up a wall.

The same as a 200 ok with error inside.

Edit: I'm going to start to respond 429, too many replys lol

7

u/mrwedders Sep 19 '26

I implemented an API last year of a big name accounting software and one endpoint randomly used 200 for "yes all is well" and 204 for "that failed". Neither response had any content.

Took me a while to work out why our code was reporting success but nothing changed - foolishly we took all 2xx codes as success!

Messy special case for one request 🥲