Best practices on handling errors and other exceptions.
400
Bad request - Returned when the request passed authentication and authorization checks, but the request did not have the data it expected. In most situations, this is because of missing request properties, or incorrect values for properties.401
Unauthorized - Returned when the bearer token was not valid and could not be used to authorize the API call. In this case please check the List 4XX errors API to inspect the cause of the issue.403
Forbidden - Returned when the bearer token is valid but the authenticating client does not have permission to access or manipulate the resource. This may be due to insufficient scopes in the JWT, a restricted API key used to sign the JWT, or a resource being locked.404
Not found - The resource could not be found. In a small number of cases, the resource may indeed exist, but due to permissions it is not accessible to the authenticated client and returning a 403
would provide information that should not be available to the caller.405
Method not allowed - The HTTP method used was not recognized for the path of the request.409
Duplicate record - A record already exists that matches one of the unique constrain for this resource. Check the API documentation for the call made to check what fields have a unique constraint.5XX
errors.