Error Format
HTTP Status Codes
Error Types
invalid_model
Status:400
The specified model name is invalid or not supported.
- Typo in model name
- Unsupported Stratus size (use: small, base, large, xl, huge)
- Unsupported LLM
- Missing LLM suffix for chat completions
model_not_loaded
Status:503
The requested Stratus model is not loaded on the server.
- Model size not preloaded on server
- Server configuration excludes this model
- Model loading failed
- Try a different model size (base/large usually available)
- Contact support if the model should be available
- Wait and retry if server is warming up
llm_provider_error
Status:502
Error from the execution LLM provider (OpenAI, Anthropic, etc.).
- Downstream LLM service is down
- Rate limits on LLM provider
- Invalid LLM API key (server-side)
- Retry with exponential backoff
- Try different execution LLM
- Check Status Page
planning_failed
Status:504
Stratus planning timed out or failed.
- Very long input sequences
- Complex goal requiring extensive planning
- Server overload
- Simplify the goal or break into steps
- Reduce input length
- Retry with smaller model size
authentication_error
Status:401
API key is invalid or missing.
- API key not provided
- API key is incorrect
- API key has been revoked
rate_limit
Status:429
Request rate limit exceeded.
Rate limiting is not currently enforced. If you receive a
429, implement exponential backoff and retry.invalid_request_error
Status:400
Request parameters are invalid.
Error Handling Patterns
Basic Try-Catch
Comprehensive Error Handling
Retry with Exponential Backoff
Circuit Breaker Pattern
Monitoring Errors
Log Error Rates
Alert on Critical Errors
Best Practices
- Always handle errors - Don’t let exceptions crash your application
- Implement retries - Retry transient errors (429, 500, 503)
- Log errors - Track error rates and patterns
- Use circuit breakers - Prevent cascading failures
- Validate input - Catch errors before API calls when possible
- Have fallbacks - Degrade gracefully when Stratus is unavailable
Support
If you encounter persistent errors:- Check Status Page
- Review API Reference for correct usage
- Contact support at support@stratus.run
- Include error details: status code, error type, timestamp
Next Steps
- Chat Completions - Main API documentation
- Quickstart - Integration guide
- Status Page - Check service health

