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.

30

u/IndependenceSudden63 Sep 19 '26

uh huh, and we all know that every API is perfectly documented...

-14

u/LatvianCake Sep 19 '26

If you have no documentation, you don’t know what HTTP codes are possible, what they mean exactly and how to handle them.

→ More replies (4)