Errors
Standard HTTP response codes are used for all errors, and all errors contain at least the following fields:
{
"status": 401,
"code": "UNAUTHORIZED",
"message": "Missing authentication token"
}
Some errors provide additional information in the details
field:
{
"status": 422,
"code": "UNPROCESSABLE_ENTITY",
"message": "Invalid request data",
"details": [
{
"code": "INVALID_TYPE",
"field": "password",
"message": "Required"
}
]
}
Possible Errors
Status | Code | Message |
---|---|---|
401 | UNAUTHORIZED | Missing authentication token |
403 | FORBIDDEN | No access to resource |
404 | NOT_FOUND | Resource not found |
422 | UNPROCESSABLE_ENTITY | Varies by request |