Status code | Error type | Trigger | Response |
---|---|---|---|
400 | Bad Request | Request body or parameters are malformed (e.g., invalid JSON, missing required field). | { "detail": "Invalid request payload" } |
401 | Unauthorized | Missing or invalid Bearer token. | { "detail": "Not authenticated" } |
403 | Forbidden | User request rejected due to missing/invalid auth. | { "detail": "Not authenticated" } |
404 | Not Found | Requested resource doesn’t exist (e.g., /api/v1/trajectories/{id} with unknown id). | { "detail": "Resource not found" } |
409 | Conflict | Resource already exists, or invalid state transition. | { "detail": "Conflict: agent already exists" } |
422 | Unprocessable Entity | Validation errors (schema validation fails). | { "detail": [ { "loc": ["body","field"], "msg": "field required", "type": "value_error.missing" } ] } |
429 | Too Many Requests | Rate limiting / quota exceeded. | { "detail": "Rate limit exceeded, try again later" } |
500 | Internal Server Error | Unexpected server-side failure. | { "detail": "Internal server error" } |
503 | Service Unavailable | API temporarily unavailable (e.g., during deployment or outage). | { "detail": "Service unavailable, please try again later" } |
202 | Accepted | Request accepted but processing is asynchronous (e.g., updating status, user interactions). | {} (empty body or task acknowledgment) |
204 | No Content | Request succeeded but no data to return (e.g., no trajectory changes since last index). | (empty response body) |