# Evidence Rooms error codes

Every error is JSON `{ code, message, remediation, retryable, docs_url }`. Codes are stable and only ever added to.

## not_found

HTTP 404. Check the id. Evidence is amend-only and never moves.

## method_not_allowed

HTTP 405. Evidence Rooms is amend-only: only GET and POST exist. No PUT or DELETE.

## payload_too_large

HTTP 413. Reduce the record body. Artifacts live with their owners; records carry metadata only.

## unsupported_media_type

HTTP 415. Send Content-Type application/json (or the record media type) on ingest.

## invalid_record

HTTP 422. Check the request against the API reference.

## digest_mismatch

HTTP 422. sha256 must equal the hash of the exact bytes uploaded. Recompute and resubmit.

## signature_invalid

HTTP 401. The upload signature did not verify against your registered signing key.

## unauthorized

HTTP 401. Sign in (passkey or identity provider), or send an access token from /oauth/token as a Bearer token.

## forbidden

HTTP 403. This action is not permitted for your tier or class.

## insufficient_scope

HTTP 403. Your token lacks the scope this action needs, or is scoped to another case.

## rate_limited

HTTP 429. Slow down and honor Retry-After.

## idempotency_conflict

HTTP 409. This Idempotency-Key was used with a different request body. Use a fresh key.

## validation_error

HTTP 422. One or more fields failed validation. See message for the failing path.

## conflict

HTTP 409. The resource already exists in a conflicting state.

## read_only

HTTP 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

HTTP 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

HTTP 403. Accept the case's current privacy notice and terms first (POST /api/cases/{id}/consent).

## payment_required

HTTP 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

HTTP 500. An unexpected error occurred. The request may be retryable.
