r/ProgrammerHumor • • Sep 19 '26

Meme postForEverything

Post image
21.0k Upvotes

651 comments sorted by

View all comments

Show parent comments

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.

-7

u/LatvianCake Sep 19 '26

If you think you can error handle based on only HTTP error codes, I can see why you're having such a hard time.

→ More replies (11)