Metju@lemmy.worldtoProgramming@programming.dev•What is your preferred API error response and why?
4·
2 months agoThis is the right answer imo. While it might be an overkill for sth like 404s, it’s amazing for describing different bad requests.
This is the right answer imo. While it might be an overkill for sth like 404s, it’s amazing for describing different bad requests.
There is an old anecdote about this kind of situation; Postman (P), Recipient ®:
R: what are you doing? P: I left a notice that I tried delivering a package and you weren’t home. R: But I clearly was! P: <shrugs> R: <bashes postman’s face in> P: WTF, MAN!? R: It wasn’t me, I wasn’t home.
Violence No Matter What (in my ass)