Getting Started
Error Handling & Status Codes
The Cineamo API uses standard HTTP status codes to indicate the success or failure of requests.
📊 HTTP Status Codes
✅ Success Codes (2xx)
200 OK- Request succeeded201 Created- Resource successfully created204 No Content- Request succeeded with no response body
❌ Client Error Codes (4xx)
400 Bad Request- Invalid request parameters401 Unauthorized- Missing or invalid authentication403 Forbidden- Insufficient permissions404 Not Found- Resource doesn't exist422 Unprocessable Entity- Validation errors429 Too Many Requests- Rate limit exceeded
🔥 Server Error Codes (5xx)
500 Internal Server Error- Server-side error502 Bad Gateway- Gateway error503 Service Unavailable- Service temporarily unavailable
Error Response Format
All error responses follow this JSON structure:
Code
Error Response Fields
code- Machine-readable error codemessage- Human-readable error messagedetails- Additional error details (optional)request_id- Unique request identifier for support
Common Error Codes
| Code | Description |
|---|---|
AUTHENTICATION_REQUIRED | Missing authentication credentials |
INVALID_TOKEN | Invalid or expired access token |
INSUFFICIENT_PERMISSIONS | User lacks required permissions |
RESOURCE_NOT_FOUND | Requested resource doesn't exist |
VALIDATION_ERROR | Request validation failed |
RATE_LIMIT_EXCEEDED | Too many requests |
INTERNAL_ERROR | Server-side error |
Handling Errors
Retry Strategy
For 5xx errors and 429 rate limit errors:
- Wait before retrying (use exponential backoff)
- Maximum 3 retry attempts
- Include
request_idwhen contacting support
Example Error Handling
Code
Getting Help
If you encounter persistent errors, contact support with:
- The
request_idfrom the error response - The endpoint and HTTP method used
- Request timestamp
- Error message and code
Last modified on

