This document provides a comprehensive overview of all error responses in the Opper API v2.
Error Type | Error Message | Description |
---|---|---|
BadRequestError | The request is invalid | Generic validation or request error |
StructuredGenerationError | The structured generation failed | Model couldn’t generate valid structured output |
ContentPolicyViolationError | Content policy violation error | Content violates provider policies |
ContextWindowExceededError | Context window exceeded error | Request exceeds model’s context window |
Error Type | Error Message | Description |
---|---|---|
UnauthorizedError | The request is unauthorized | Authentication failed |
UnauthorizedError | The request is unauthorized | No authentication provided |
Error Type | Error Message | Description |
---|---|---|
HTTPException | Account suspended | User account is suspended |
Error Type | Error Message | Description |
---|---|---|
NotFoundError | The resource was not found | Function not found |
NotFoundError | The resource was not found | Function revision not found |
NotFoundError | The resource was not found | Dataset not found |
NotFoundError | The resource was not found | Dataset entry not found |
NotFoundError | The resource was not found | Custom model not found |
NotFoundError | The resource was not found | Span not found |
NotFoundError | The resource was not found | Parent span not found |
NotFoundError | The resource was not found | Metric not found |
NotFoundError | The resource was not found | Trace not found |
NotFoundError | The resource was not found | Knowledge base not found |
NotFoundError | The resource was not found | Index not found |
NotFoundError | The resource was not found | File not found |
Error Type | Error Message | Description |
---|---|---|
ConflictError | The resource already exists | Function name conflict |
ConflictError | The resource already exists | Function name exists during update |
ConflictError | The resource already exists | Custom model name conflict |
ConflictError | The resource already exists | Custom model identifier conflict |
ConflictError | The resource already exists | Index name conflict |
ConflictError | The resource already exists | Metric already exists |
Error Type | Error Message | Description |
---|---|---|
RequestValidationError | Request validation error | Pydantic validation errors |
Error Type | Error Message | Description |
---|---|---|
RateLimitError | Rate limit exceeded | Rate limit from LLM provider |
Error Type | Error Message | Description |
---|---|---|
InternalServerError | Internal server error | Unexpected server error |
Error Type | Error Message | Description |
---|---|---|
LLMProviderError | LLM provider error | LLM provider error |
LLMProviderError | LLM provider error | Connection error to LLM provider |
Authorization: Bearer YOUR_API_KEY
^[a-zA-Z0-9_.-]+$
)