temporarily-unavailable
A problem type of the ckrets.ai API, answered with 503. The answer is application/problem+json (RFC 9457) with type https://ckrets.ai/problems/temporarily-unavailable, title, status, detail and requestId. Branch on type, never on title.
503: wait, then send the same request again
Nothing was done; send it again after a second. The other 503 temporarily-unavailable, with outcome: "unknown", carries Retry-After too: tell the two apart by outcome in the body, never by the header.
Also in the answer: retryable: true (Retry-After: 1), no outcome.
503: check before you repeat a write
A write may have happened: read the call in check first (a lost reveal is worked through in Limits). The other 503 temporarily-unavailable, without outcome, means nothing was done. check is none for a create (create again; the first, if it was made, expires unrevealed: nobody holds its token, so nobody can reveal it and the value is not delivered twice), GET /v1/secrets/{token}/public for a reveal (state says whether it was spent; if it was and the answer was lost, the value is gone: create again), a claim or a puzzle open, GET /v1/secrets/{token}/status for a revoke or a policy change.
Also in the answer: outcome: "unknown" (retryable: false).
More
- Every type, grouped by what to do: error types.
- The retry rules and headers: limits.
- This page for agents, as Markdown: /problems/temporarily-unavailable.md.