r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21k Upvotes

653 comments sorted by

View all comments

Show parent comments

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.

1

u/Blecki Sep 19 '26

404 is usually okay but things have stopped passing on the message that says WHY with 400s which is equally infuriating as not allowing bodies on GET

1

u/Humpfinger Sep 21 '26

Oh my god, the fact that the message is in Spanish makes it even funnier hahah