Error codes
Every error is JSON { code, message, remediation, retryable, docs_url }. Codes are stable and only ever added to. Also as markdown and JSON.
| Code | HTTP | What to do |
|---|---|---|
| not_found | 404 | Check the id. Evidence is amend-only and never moves. |
| method_not_allowed | 405 | Evidence Rooms is amend-only: only GET and POST exist. No PUT or DELETE. |
| payload_too_large | 413 | Reduce the record body. Artifacts live with their owners; records carry metadata only. |
| unsupported_media_type | 415 | Send Content-Type application/json (or the record media type) on ingest. |
| invalid_record | 422 | Check the request against the API reference. |
| digest_mismatch | 422 | sha256 must equal the hash of the exact bytes uploaded. Recompute and resubmit. |
| signature_invalid | 401 | The upload signature did not verify against your registered signing key. |
| unauthorized | 401 | Sign in (passkey or identity provider), or send an access token from /oauth/token as a Bearer token. |
| forbidden | 403 | This action is not permitted for your tier or class. |
| insufficient_scope | 403 | Your token lacks the scope this action needs, or is scoped to another case. |
| rate_limited | 429 | Slow down and honor Retry-After. |
| idempotency_conflict | 409 | This Idempotency-Key was used with a different request body. Use a fresh key. |
| validation_error | 422 | One or more fields failed validation. See message for the failing path. |
| conflict | 409 | The resource already exists in a conflicting state. |
| read_only | 409 | This case is read-only (over its plan's limits, or closed). It stays viewable, verifiable and exportable; uploads and invites wait for a plan. |
| legal_hold | 409 | This case is under legal hold. Nothing in it can be erased and it cannot be closed until an owner or admin releases the hold (POST /api/cases/{id}/legal-hold). |
| consent_required | 403 | Accept the case's current privacy notice and terms first (POST /api/cases/{id}/consent). |
| payment_required | 402 | The action needs a plan, credits, or a higher monthly cap. The response lists prices and the routes to pay. Reading and verifying are always free. |
| internal_error | 500 | An unexpected error occurred. The request may be retryable. |