Retry-After
A response header saying how many seconds to wait before trying again.
What it means
Retry-After is a standard HTTP header. A server sends it with 429 or 503 to tell the client the shortest wait that can succeed. Waiting less is wasted effort.
How Onekey handles it
Onekey sends Retry-After (whole seconds, at least 1) on 429 RATE_LIMITED, on 409 IDEMPOTENCY_IN_PROGRESS and on 503 IDEMPOTENCY_STORE_UNAVAILABLE. Sleep for that long, then retry. None of those answers is charged.