Skip to content

Error Handling

Where possible the error responses will try to explain what has gone wrong. Most commonly a required field is missing.

All errors follow a consistent JSON structure:

{
"error": {
"code": "error_type",
"details": {
"field_name": [
"error message"
]
},
"message": "Human readable message",
"status": 422
}
}

Status: 422

{
"error": {
"code": "unprocessable_entity",
"details": {
"title": [
"can't be blank"
]
},
"message": "Something went wrong",
"status": 422
}
}

Status: 422

{
"error": {
"code": "unprocessable_entity",
"details": {
"owner": [
"must exist"
],
"manager": [
"must exist"
]
},
"message": "Something went wrong",
"status": 422
}
}
CodeMeaningDescription
200OKRequest succeeded
401UnauthorizedInvalid or missing authentication token
403ForbiddenValid token but insufficient permissions
404Not FoundResource not found
422Unprocessable EntityValidation errors in request data
500Internal Server ErrorSomething went wrong on our end