this post was submitted on 11 Jun 2024
441 points (99.3% liked)

Programmer Humor

19809 readers
1139 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] calcopiritus 2 points 6 months ago (1 children)

Why not respond with the appropriate HTTP Code, and then also put the same code in the json?

[โ€“] [email protected] 2 points 6 months ago

That would have been fine for me too. I don't own the API, so I can only speak from a consumer perspective in saying: I don't want a HTTP 200 if my request didn't succeed.