449
you are viewing a single comment's thread
view the rest of the comments
[-] calcopiritus@lemmy.world 2 points 3 months ago

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.

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

Programmer Humor

19197 readers
986 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