Errors
Response format and common error codes
All errors follow a consistent JSON format:
JSON
{
"error": {
"code": "validation_error",
"message": "The given data was invalid.",
"request_id": "req_abc123",
"errors": {
"operator_email": [
"The operator email field is required."
]
}
}
}
Common Error Codes
| Code | Description |
|---|---|
| missing_api_key (401) | No API key provided |
| invalid_api_key (401) | Invalid or expired API key |
| insufficient_permissions (403) | API key lacks the required permission |
| rate_limit_exceeded (429) | Too many requests (includes retry_after, limit and limit_type) |
| validation_error (422) | Invalid request data |
| missing_operator (422) | No operator name/email could be resolved from the request or the operator record |
| no_changes (422) | Update request contained no updatable fields |
| not_found (404) | Resource not found |
| cannot_cancel (422) | Request is not cancellable in its current status (includes current_status) |
**Note on rejected flights:** When a flight fails an automated check (altitude exceeded, prohibited zone, missing exemption, etc.), the request is **not** returned as a 422 error. It is accepted with a successful `201` response as **Received**, and gets the matching rejection status (for example `Altitude Exceeded`) once it is checked, normally within seconds. Flights in unmanaged airspace get the `Registered` status.
Check status, zone_verdicts and review.notes with GET /api/v1/flight-requests/{uuid} to see the outcome per zone and the reasons. A request whose checks cannot be completed gets Processing Failed: submit it again.