● nureta
Docs

Errors and retries

Which Nureta API errors to fix, which to retry and how long to wait, by HTTP status and error code.

Every error has the same shape:

{"error": {"code": "AccountOverdueError", "message": "..."}}

Match on error.code, not on the message. A simple rule set:

StatusWhat to do
400, 404, 422Fix the request. Retrying the same body gives the same answer. Nothing was charged.
401Check the key.
403 AccountOverdueErrorAdd funds.
409The task is in the wrong state. Read it again, then decide.
429Wait 1–2 seconds (or the time in the RateLimit headers) and retry.
503Wait the seconds in the Retry-After header and retry. service_maintenance also gives error.end_at.
500Retry once after a few seconds.

A task that fails after it was accepted (status: "failed") is always refunded. Its error.code says why: see Task errors.