APIs, we have a Problem JSON
When designing a web API, not only do you have to think about the happy path when everything is alright, but you also have to handle all the error cases: Is the payload received correct? Is there a typo in a field? Do you need more context about the problem that occured?
Thereโs only a limited set of status codes that can convey the kind of error youโre getting, but sometimes you need to explain more clearly what the error is about.
Read more...