Error Response Format
All errors follow RFC 7807 (Problem Details for HTTP APIs) and return a consistent JSON structure:HTTP Status Codes
| Status Code | Meaning | Common Causes |
|---|---|---|
200 | Success | Request completed successfully |
201 | Created | Resource created successfully |
202 | Accepted | Async operation queued |
400 | Bad Request | Invalid request data |
401 | Unauthorized | Missing or invalid API key |
402 | Payment Required | Insufficient credits |
403 | Forbidden | API key lacks permission |
404 | Not Found | Resource doesn’t exist |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server-side error |
503 | Service Unavailable | Temporary outage |
Common Errors
Authentication Errors
401 - Missing API Key
401 - Missing API Key
401 - Invalid API Key
401 - Invalid API Key
403 - Permission Denied
403 - Permission Denied
Credit & Payment Errors
402 - Insufficient Credits
402 - Insufficient Credits
- Purchase more credits or upgrade your plan
- Use a template with lower credit requirements
- Reduce video resolution or duration
Validation Errors
400 - Invalid Request Body
400 - Invalid Request Body
validation_errors array and fix each field mentioned.404 - Resource Not Found
404 - Resource Not Found
- Verify the resource ID is correct
- Check that the resource belongs to your account
- Ensure the resource hasn’t been deleted
Rate Limit Errors
429 - Rate Limit Exceeded
429 - Rate Limit Exceeded
- Wait until the rate limit resets (check
Retry-Afterheader) - Implement exponential backoff
- Upgrade to a higher tier for increased limits
Server Errors
500 - Internal Server Error
500 - Internal Server Error
- Retry the request after a brief delay
- Contact stephen@getbluma.com with the
request_idfor investigation
503 - Service Unavailable
503 - Service Unavailable
Error Handling Best Practices
1. Always Check Status Codes
2. Implement Retry Logic
3. Log Request IDs
Always log therequest_id from error responses for support inquiries:
4. Handle Validation Errors
Rate Limit Headers
Monitor these headers to avoid hitting rate limits:Webhook Error Notifications
Configure webhooks to receive notifications about video generation failures:Support
If you encounter persistent errors:- Review relevant documentation sections
- Contact stephen@getbluma.com with:
- Request ID from error response
- Full error message
- Steps to reproduce
- Expected vs actual behavior