Errors
If an API call succeeds, it returns an HTTP return code 2xx and the reponse body contains the expected data else it returns an HTTP status code 4xx or 5xx and the response body contains the error details like this:
{
"message": "Not Found",
"errors": []
}
Where message
gives you an overall error description and errors
contains a detailed list of error messages, for example, of each individual field that produce the error.