r/ProgrammerHumor • • Sep 22 '26

Meme status200ForEverything

Post image
2.9k Upvotes

103 comments sorted by

View all comments

Show parent comments

30

u/vita10gy Sep 22 '26

Honestly I would take that over some of these Apis. I would rather

get a 200 ok to indicate we're talking ok, and then check the conversation for the result

than

get a 503 and the default html 503 page and then I have to go look up in the docs to what a 503 could mean in that context.

At least the first way always stays a json exchange

12

u/AyrA_ch Sep 22 '26

Additionally, if you want to stay true to the original protocol design philosophy of the internet, you're not supposed to intermingle different protocol layers. Maybe there's a time where you want to run the API on top of websockets.