Errors

All errors return JSON with an error field and an HTTP status code.

Status codes

CodeMeaning
400Invalid request body or query
401Missing or invalid API key
404Resource not found or not owned by you
409Conflict (e.g. answering a run that's not awaiting input)
413Upload too large
415Unsupported file type
500Internal error
503Feature not configured (e.g. R2 not set up)

Example

json
{ "error": "Invalid or revoked API key" }