Problem details response
How should we return non 200 responses? When creating an API, returning non 200 ok responses can be quite tricky as you might not know what information should be provided to the consumers. A 200 OK response is very straightforward as we understand that it represents a successful request and in the case of a GET, a response can be provided. In the case of a non 200 response however, things can be a bit more tricky....