Understanding and handling errors in the FirstQuadrant API
Status Code | Description |
---|---|
200 | Success - The request completed successfully |
201 | Created - A new resource was created successfully |
204 | No Content - The request succeeded with no response body |
400 | Bad Request - The request was invalid or malformed |
401 | Unauthorized - Authentication failed or missing |
403 | Forbidden - Valid authentication but insufficient permissions |
404 | Not Found - The requested resource doesn’t exist |
409 | Conflict - The request conflicts with existing data |
422 | Unprocessable Entity - Validation errors |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Something went wrong on our end |
Field | Type | Description |
---|---|---|
code | string | Machine-readable error code |
status | number | HTTP status code |
message | string | Brief human-readable message |
description | string | Detailed explanation of the error |
details | array | Additional error details (for validation errors) |
Code | Status | Description |
---|---|---|
missing_authorization | 401 | No authentication credentials provided |
invalid_token | 401 | The provided token is invalid or expired |
insufficient_permissions | 403 | Valid credentials but lacking required permissions |
missing_scopes | 403 | API key doesn’t have required scopes |
Code | Status | Description |
---|---|---|
validation_error | 422 | Request body validation failed |
invalid_parameters | 400 | Query parameters are invalid |
missing_required_field | 422 | A required field is missing |
invalid_field_value | 422 | A field contains an invalid value |
Code | Status | Description |
---|---|---|
not_found | 404 | The requested resource doesn’t exist |
already_exists | 409 | A resource with the same identifier already exists |
resource_locked | 423 | The resource is locked and cannot be modified |
Code | Status | Description |
---|---|---|
rate_limited | 429 | Too many requests in a short period |
details
array provides specific information about each field that failed validation:
X-Request-Id
header for debuggingX-Request-Id
header from the response