# Errors & retries · Quanteex

## Errors & retries

Retry only when the outcome is safe to repeat.

### HTTP status codes

Use the HTTP status and the structured error response. Error text and fields may change; branch on the status and stable error type.

Status | Meaning

400 | Invalid request, model, API format or unsupported option.

401 | Missing, revoked or invalid API key.

402 | Insufficient available balance or budget.

404 | Requested resource not found or inaccessible.

429 | Too many requests or concurrent generations.

502 | Generation failed or returned an invalid result.

503 | Service temporarily unavailable.

### Rate limits

For 429 responses, respect Retry-After and retry with increasing delays. Limit concurrent requests in your application.

### Service availability

For temporary service errors, check status.quanteex.com and retry later. Keep the request ID when contacting support.

### Client retries

A 502, timeout or broken connection does not prove that generation never happened. Surface an error and retry only when your application can safely tolerate a duplicate.

Make your first request with Quanteex.

