400, 422 | invalid_request | no | 422: a field failed validation. Fix the field in param. 400: the body is valid but Autumn rejects it. Read message. |
401 | unauthorized | no | Send the full key as X-API-Key or Authorization: Bearer. The response carries WWW-Authenticate. |
402 | out_of_credits | no | Add credits at resolve, then send the request again. |
404 | task_not_found | no | Check the task_id, or list tasks with GET /task. |
404 | not_found | no | The route does not exist. message points at the route list. |
405 | method_not_allowed | no | Wrong HTTP method for the route. Check the method in the OpenAPI spec. |
413 | payload_too_large | no | Send large inputs through POST /upload-url. |
415 | unsupported_media_type | no | Send the body as JSON with Content-Type: application/json. |
409 | task_executing | yes | A turn is running. Poll GET /task/{task_id}/state until active is false, then send again. Stop only to abandon the turn. |
409 | task_in_cron_mode | no | The task runs on a schedule. Switch it to chat mode in the platform, or start a new task. |
409 | task_exists | no | A task with that task_id exists. Continue it with POST /task/{task_id}/continue. |
429 | rate_limited | yes | Wait retry_after seconds. See Rate limits. |
500 | internal_error | yes | If the body carries task_id, the task exists: continue it. Otherwise send again. If it repeats, contact support with request_id. |
502 | bad_gateway | yes | An upstream service failed. Send the request again shortly. |
503 | service_unavailable, at_capacity, auth_unavailable | yes | Wait retry_after seconds, then send the request again. |