Best Practices for API Error Handling(nordicapis.com)
Error codes are probably the most useful diagnostic element in the API space, and this is surprising, given how little attention we often pay them. Today, we’re going to talk about exactly why error responses and handling approaches are so useful and important. We’ll take a look at some common error code classifications the average user will encounter, as well as some examples of these codes in action. We’ll also talk a bit about what makes a “good” error code and what makes a “bad” error code, and how to ensure your error codes are up to snuff.