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

Programmer Humor

19197 readers
1113 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
[โ€“] calcopiritus@lemmy.world 2 points 3 months ago (1 children)

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

[โ€“] jballs@sh.itjust.works 2 points 3 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.