Errors
The REST API provides consistent, predictable error reporting, with HTTP status codes and detailed error messages.
The following error codes may be returned:
Error Code | Meaning |
---|---|
400 Bad Request | Indicates that the sent request is malformed, for example the request has wrong headers. |
401 Unauthorized | Indicates that the Authorization header is missing in the request. |
403 Forbidden | Indicates that the provided access key for the call is not valid. |
404 Not Found | Indicates that the specified resource is not found, for example the user ID does not exist. |
405 Method Not Allowed | Indicates that the API endpoint does not exist. |
409 Conflict | Indicates that the request could not be completed due to a conflict with the current state of the target resource. For example, the target resource may have been modified concurrently. |
415 Unsupported Media Type | Indicates invalid media type provided, for example sending a form encoded POST request body, instead of JSON. |
422 Unprocessable Entity | Indicates that the request format is valid but the values do not meet the business rules. For example, a mandatory value is missing. |
5xx | Any 5xx error code indicates a server-side problem and should be followed up with Nevis support. |