Error Response Format
All each::labs APIs return errors in a clean, consistent JSON format:HTTP Status Codes
Common Errors
400: Bad Request
- Missing required parameters
- Invalid parameter types or values
- Malformed JSON body
- Input validation failure
401: Unauthorized
X-API-Keyheader not included- API key is invalid or expired
403: Forbidden
- Attempting to modify a locked workflow or version
- Insufficient permissions for the requested operation
404: Not Found
- Invalid model slug
- Non-existent prediction ID, workflow ID, or execution ID
- Resource was deleted
429: Rate Limited
- Implement exponential backoff
- Check the
Retry-Afterheader when available - Consider reducing request frequency
500: Internal Server Error
- Retry with exponential backoff
- If persistent, contact support