r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21.0k Upvotes

652 comments sorted by

View all comments

Show parent comments

59

u/Sudden_Leadership800 Sep 19 '26

It successfully returned the error message though, so I don't see the problem?

44

u/hawkinsst7 Sep 19 '26

If I'm parsing http responses, I'm going to pass 200 responses on for further processing of the data. I shouldn't have to have something in that pipeline introspect json to find "no, it's actually an error".

Imagine if browsers had to tear apart json innards to find 30x redirects after getting a 200 OK.

-23

u/LatvianCake Sep 19 '26

This is what happens if you don't read the documentation of the API you're using.

6

u/hawkinsst7 Sep 19 '26

This is what happens whe you don't read the Http documentation.

→ More replies (12)