Understanding and handling Prisme.ai API errors
x-correlation-id response header that will help you find relevent activity events or application logs.
| Code | Description |
|---|---|
| 200 | OK - The request succeeded |
| 201 | Created - A new resource was successfully created |
| 202 | Accepted - The request has been accepted for processing |
| 204 | No Content - The request succeeded but returns no content |
Authentication Errors
| Code | HTTP Status | Description |
|---|---|---|
invalid_token | 401 | The provided token is invalid, expired, or has been revoked |
missing_token | 401 | No authentication token was provided |
invalid_credentials | 401 | The provided username/password or API key is incorrect |
token_expired | 401 | The provided token has expired |
Authorization Errors
Resource Errors
| Code | HTTP Status | Description |
|---|---|---|
resource_not_found | 404 | The requested resource does not exist |
resource_already_exists | 409 | A resource with the specified identifier already exists |
resource_conflict | 409 | The request conflicts with the current state of the resource |
resource_locked | 423 | The resource is currently locked and cannot be modified |
Validation Errors
| Code | HTTP Status | Description |
|---|---|---|
invalid_request | 400 | The request body or parameters are invalid |
invalid_parameter | 400 | A specific parameter has an invalid value |
missing_parameter | 400 | A required parameter is missing |
validation_failed | 422 | The input failed validation checks |
Rate Limiting Errors
| Code | HTTP Status | Description |
|---|---|---|
rate_limit_exceeded | 429 | You’ve exceeded the rate limit for this endpoint |
quota_exceeded | 429 | You’ve exceeded your usage quota |
concurrent_request_limit | 429 | Too many concurrent requests |
Server Errors
| Code | HTTP Status | Description |
|---|---|---|
internal_error | 500 | An unexpected error occurred on the server |
service_unavailable | 503 | The service is temporarily unavailable |
gateway_timeout | 504 | A dependent service timed out |
database_error | 500 | A database operation failed |
Check HTTP Status Code
Parse Error Code
Implement Retry Logic
Log Errors
Authentication Failed
Permission Denied
Rate Limit Exceeded
Retry-After header for guidance on when to retryInvalid Parameters
details field in the error response for specific validation failures