this post was submitted on 11 Jun 2024
449 points (99.1% liked)

Programmer Humor

19511 readers
515 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 4 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 4 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.