Skip to content

Error handling

Errors and Status Codes

If a request fails any validations, expect a 422 and errors in the following format:

{
"errors":{
"body": [
"can't be empty"
]
}
}

Other status codes:

401 for Unauthorized requests, when a request requires authentication but it isn’t provided

403 for Forbidden requests, when a request may be valid but the user doesn’t have permissions to perform the action

404 for Not found requests, when a resource can’t be found to fulfill the request