Skip to main content
Stratus returns OpenAI-compatible error responses with detailed error information.

Error Format

HTTP Status Codes

Error Types

invalid_model

Status: 400 The specified model name is invalid or not supported.
Causes:
  • Typo in model name
  • Unsupported Stratus size (use: small, base, large, xl, huge)
  • Unsupported LLM
  • Missing LLM suffix for chat completions
Solution:

model_not_loaded

Status: 503 The requested Stratus model is not loaded on the server.
Causes:
  • Model size not preloaded on server
  • Server configuration excludes this model
  • Model loading failed
Solution:
  • 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.).
Causes:
  • Downstream LLM service is down
  • Rate limits on LLM provider
  • Invalid LLM API key (server-side)
Solution:
  • Retry with exponential backoff
  • Try different execution LLM
  • Check Status Page

planning_failed

Status: 504 Stratus planning timed out or failed.
Causes:
  • Very long input sequences
  • Complex goal requiring extensive planning
  • Server overload
Solution:
  • 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.
Causes:
  • API key not provided
  • API key is incorrect
  • API key has been revoked
Solution:

rate_limit

Status: 429 Request rate limit exceeded.
Rate limiting is not currently enforced. If you receive a 429, implement exponential backoff and retry.
Solution:

invalid_request_error

Status: 400 Request parameters are invalid.
Common Causes: Missing required field:
Invalid message role:
Empty messages array:

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

  1. Always handle errors - Don’t let exceptions crash your application
  2. Implement retries - Retry transient errors (429, 500, 503)
  3. Log errors - Track error rates and patterns
  4. Use circuit breakers - Prevent cascading failures
  5. Validate input - Catch errors before API calls when possible
  6. Have fallbacks - Degrade gracefully when Stratus is unavailable

Support

If you encounter persistent errors:
  1. Check Status Page
  2. Review API Reference for correct usage
  3. Contact support at support@stratus.run
  4. Include error details: status code, error type, timestamp

Next Steps