{
  "errors": [
    {
      "code": "not_found",
      "status": 404,
      "remediation": "Check the id. Evidence is amend-only and never moves."
    },
    {
      "code": "method_not_allowed",
      "status": 405,
      "remediation": "Evidence Rooms is amend-only: only GET and POST exist. No PUT or DELETE."
    },
    {
      "code": "payload_too_large",
      "status": 413,
      "remediation": "Reduce the record body. Artifacts live with their owners; records carry metadata only."
    },
    {
      "code": "unsupported_media_type",
      "status": 415,
      "remediation": "Send Content-Type application/json (or the record media type) on ingest."
    },
    {
      "code": "invalid_record",
      "status": 422,
      "remediation": "Check the request against the API reference."
    },
    {
      "code": "digest_mismatch",
      "status": 422,
      "remediation": "sha256 must equal the hash of the exact bytes uploaded. Recompute and resubmit."
    },
    {
      "code": "signature_invalid",
      "status": 401,
      "remediation": "The upload signature did not verify against your registered signing key."
    },
    {
      "code": "unauthorized",
      "status": 401,
      "remediation": "Sign in (passkey or identity provider), or send an access token from /oauth/token as a Bearer token."
    },
    {
      "code": "forbidden",
      "status": 403,
      "remediation": "This action is not permitted for your tier or class."
    },
    {
      "code": "insufficient_scope",
      "status": 403,
      "remediation": "Your token lacks the scope this action needs, or is scoped to another case."
    },
    {
      "code": "rate_limited",
      "status": 429,
      "remediation": "Slow down and honor Retry-After."
    },
    {
      "code": "idempotency_conflict",
      "status": 409,
      "remediation": "This Idempotency-Key was used with a different request body. Use a fresh key."
    },
    {
      "code": "validation_error",
      "status": 422,
      "remediation": "One or more fields failed validation. See message for the failing path."
    },
    {
      "code": "conflict",
      "status": 409,
      "remediation": "The resource already exists in a conflicting state."
    },
    {
      "code": "read_only",
      "status": 409,
      "remediation": "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."
    },
    {
      "code": "legal_hold",
      "status": 409,
      "remediation": "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)."
    },
    {
      "code": "consent_required",
      "status": 403,
      "remediation": "Accept the case's current privacy notice and terms first (POST /api/cases/{id}/consent)."
    },
    {
      "code": "payment_required",
      "status": 402,
      "remediation": "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."
    },
    {
      "code": "internal_error",
      "status": 500,
      "remediation": "An unexpected error occurred. The request may be retryable."
    }
  ]
}