Errors
All errors return JSON with an error field and an HTTP status code.
Status codes
| Code | Meaning |
|---|---|
| 400 | Invalid request body or query |
| 401 | Missing or invalid API key |
| 404 | Resource not found or not owned by you |
| 409 | Conflict (e.g. answering a run that's not awaiting input) |
| 413 | Upload too large |
| 415 | Unsupported file type |
| 500 | Internal error |
| 503 | Feature not configured (e.g. R2 not set up) |
Example
json{ "error": "Invalid or revoked API key" }