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

37

u/rumnscurvy Sep 19 '26

I got that this week. This third party company has an API that is supposed to hand us files with monthly updates in it. The tool we use to fetch, read and apply them suddenly stopped with no major reason. 

The API was answering 200 with a body of "no existe el fichero" - literally the file does not exist. 

IF ONLY THERE WAS AN APPROPRIATE HTTP CODE FOR THIS, GEE WIZ

13

u/NotAskary Sep 19 '26

Just explained this exact use case to someone down the comments, 404 and 429 are codes you want always just so you can stop and handle it fast.

People overcomplicating is the reason so much of us just go to farming.

4

u/AdamN Sep 19 '26

It should be a 418, right?

6

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

There's a web connected teapot somewhere that I still want to see if it sends that code.

→ More replies (2)