Error handling

Open in ShowDoc โ†’ ยท All docs

Error handling

Task error envelope (create / query)

{ "code": "invalid_request", "message": "...", "data": null }

Download error envelope (/content)

{ "error": { "message": "...", "type": "invalid_request_error" } }

HTTP status codes

HTTPScenario
400Bad params / task not finished (/content returns 400 before completion)
401Auth failed
404Task not found / model not listed
429Rate limited (group upstream saturated) / out of balance
5xxUpstream error

> A failed run still returns HTTP 200 with status=failed; failed tasks are fully refunded.