Overview
This guide covers common errors and how to handle them when using the Compile Labs API.Error Response Format
All errors follow a consistent format:Common Errors
Authentication Errors
Invalid API Key
Bearer prefix.
Missing API Key
Authorization header with your API key.
Rate Limit Errors
Invalid Request
Invalid Model
/v1/models.
Invalid Parameters
Insufficient Credits
Model Unavailable
HTTP Status Codes
- 200: Success
- 400: Bad Request - Invalid parameters
- 401: Unauthorized - Invalid or missing API key
- 402: Payment Required - Insufficient credits
- 403: Forbidden - Access denied
- 404: Not Found - Resource doesn’t exist
- 429: Too Many Requests - Rate limit exceeded
- 500: Internal Server Error - Server issue
- 503: Service Unavailable - Model unavailable