Documentation Index
Fetch the complete documentation index at: https://docs.vectrade.io/llms.txt
Use this file to discover all available pages before exploring further.
Error Handling
Error Response Format
All errors follow a consistent JSON structure:Error Types
| HTTP Status | Error Type | SDK Exception | Retryable |
|---|---|---|---|
| 401 | authentication_error | AuthenticationError | No |
| 403 | permission_error | AuthenticationError | No |
| 404 | not_found | NotFoundError | No |
| 422 | validation_error | ValidationError | No |
| 429 | rate_limit_error | RateLimitError | Yes |
| 429 | quota_exceeded | QuotaExceededError | No |
| 500 | server_error | ServerError | Yes |
| 502 | bad_gateway | ServerError | Yes |
| 503 | service_unavailable | ServerError | Yes |
Automatic Retries
The SDK automatically retries failed requests for transient errors (429, 5xx) with exponential backoff:Retry Behavior
- Initial delay: 0.5 seconds
- Backoff factor: 2x (0.5s → 1s → 2s → 4s)
- Jitter: ±25% randomization to prevent thundering herd
- Retry-After: Server header takes precedence when present
- Max delay: 30 seconds cap
Exception Hierarchy
Handling Errors
Request IDs
Every response includes a uniqueX-Request-Id header. Include this when contacting support:
Rate Limit Headers
Successful responses include rate limit information:| Header | Description |
|---|---|
X-VQ-RateLimit-Limit | Max requests per window |
X-VQ-RateLimit-Remaining | Requests remaining |
X-VQ-RateLimit-Reset | Window reset (Unix timestamp) |