Error handling
| Case | HTTP behavior |
|---|---|
Submission accepted, still pending or retryable |
POST /v1/attestations returns 202 and a job snapshot. |
Submission matches a terminal job (confirmed or failed) |
POST /v1/attestations returns 200 and the existing job snapshot. |
| Known job | GET /v1/attestations/{hash} returns 200 for any state. |
| Unknown job or no confirmed receipt for a bundle | 404. |
| No checkpoint at requested size, or receipt not covered by that checkpoint | 404 from the corresponding log endpoint. |
| Invalid hash | 400. |
| Rate limit exceeded | 429; honor Retry-After when present. |
| Gateway active-job capacity exhausted | 503 on submission. |
| Well-formed receipt fails gateway verification | POST /v1/verify returns 200 with valid: false. |
Poll with backoff. A new submission for the same hash returns the same
job; it does not restart a terminal failure. A job that exhausts its
signing window ends with last_error: "signing_deadline_exceeded".
The CLI exits nonzero on failed verification in text and JSON. A bundle
without an inclusion proof can pass a receipt-only check. A present,
invalid proof fails verification; use --require-log-inclusion when a
receipt alone is not enough. See Verification failures.