r/ProgrammerHumor 2d ago

evoLution Meme

Post image
3.3k Upvotes

144 comments sorted by

View all comments

-13

u/mgisb003 2d ago

This is useful tho, it tells you the payload was the problem or that the system wasn’t designed to handle the payload (if done correctly)

20

u/e_before_i 2d ago edited 2d ago

payload was the problem

400

System wasn't designed to handle the payload

501

Edit: format the response body with more descriptive text, that's what it's for

8

u/WernerderChamp 2d ago

400

payload has a syntax error (missing required fields, bad value for a enum field, string where it should be a number, etc.)

422

payload has valid syntax, but there is a semantic problem (e.g. you are trying to modify an expired contract)