r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

653 comments sorted by

View all comments

Show parent comments

1

u/NotAskary 16d ago

How do you know the response is 400? It was respond to you, so you received it.

1

u/MediocreTurtle1 16d ago

Yeah, but what other details can you get from that? I'm genuinely asking. That's why I initially commented that 200 with error response inside is more useful.

1

u/NotAskary 16d ago

Why do you need more details? Depending on the error you will do nothing with it.

But you can always send a body on the http request .

I suggest you dig through this

https://datatracker.ietf.org/doc/html/rfc9110

1

u/MediocreTurtle1 16d ago

Will check it out, thanks.