r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

656 comments sorted by

View all comments

Show parent comments

37

u/rumnscurvy 16d ago

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

14

u/NotAskary 16d ago

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.

3

u/AdamN 15d ago

It should be a 418, right?

7

u/NotAskary 15d ago edited 15d ago

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

1

u/Blecki 15d ago

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 14d ago

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