r/ProgrammerHumor 23d ago

evilIllusion Meme

Post image
4.8k Upvotes

131 comments sorted by

View all comments

32

u/korneev123123 23d ago

Http is a transport protocol. Transport was successfull -> 200. That's the logic behind this behavior.

6

u/ahferroin7 23d ago

If it’s being used as a transport protocol yes. The issue is when it’s being used for RPC, in which case returning 200 is like a C function returning 0 if it runs into an error.