Error Response Format
All errors follow a consistent format:Array of error objects
Machine-readable error code
Human-readable error description
Additional context about the error
Error Codes
400 Bad Request
VALIDATION_ERROR
VALIDATION_ERROR
Invalid request data or parameters.Solution: Check the request body against the API specification.
401 Unauthorized
UNAUTHORIZED
UNAUTHORIZED
403 Forbidden
FORBIDDEN
FORBIDDEN
Insufficient permissions for the requested operation.Solution: Request additional scopes from your administrator.
404 Not Found
NOT_FOUND
NOT_FOUND
The requested resource does not exist or you don’t have access to it.Solution: Verify the resource ID and your company’s access to it.
500 Internal Server Error
INTERNAL_ERROR
INTERNAL_ERROR
An unexpected error occurred on the server.Solution: Retry the request. If the issue persists, contact support.
Best Practices
Retry Logic
Implement exponential backoff for transient errors (500, 503)
Log Errors
Log error responses for debugging and monitoring
Validate Input
Validate data client-side before sending to reduce 400 errors
Handle Gracefully
Provide meaningful error messages to end users