{
  "codes": {
    "access_denied": {
      "status": 400,
      "where": [
        "cli"
      ],
      "meaning": "The person denied the device login. Exit code 3.",
      "docs": "https://jsflow.com/docs/reference/errors/#access_denied"
    },
    "already_member": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "That person is already a member, or invited.",
      "docs": "https://jsflow.com/docs/reference/errors/#already_member"
    },
    "app_id_taken": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "The app id is or was used by an account.",
      "docs": "https://jsflow.com/docs/reference/errors/#app_id_taken"
    },
    "apps": {
      "status": 402,
      "where": [
        "account"
      ],
      "meaning": "The plan's app limit.",
      "docs": "https://jsflow.com/docs/reference/errors/#apps"
    },
    "authorization_pending": {
      "status": 400,
      "where": [
        "cli"
      ],
      "meaning": "The device login has not been approved yet (RFC 8628); the CLI keeps polling.",
      "docs": "https://jsflow.com/docs/reference/errors/#authorization_pending"
    },
    "bad_blob": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "`/signal` `blob` is not a string.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_blob"
    },
    "bad_id": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "An id is not an integer 0-65534; the field is named in `message`.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_id"
    },
    "bad_inc": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "`inc` is not an integer 1 to 2^32-1.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_inc"
    },
    "bad_json": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "The body is not a JSON object.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_json"
    },
    "bad_kind": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "`/signal` `kind` is not an integer 0-255.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_kind"
    },
    "bad_path": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "A static file path that does not decode.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_path"
    },
    "bad_pool_token": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "The pool token is invalid or expired.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_pool_token"
    },
    "bad_pub": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "`pub` is not base64 of 32 bytes.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_pub"
    },
    "bad_request": {
      "status": 400,
      "where": [
        "account",
        "signalling"
      ],
      "meaning": "The request is malformed or a field is invalid; `message` names the field.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_request"
    },
    "bad_room": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "The room name does not match its pattern (`want` names it).",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_room"
    },
    "bad_session_key": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "The session key does not match (room, id, inc), or `inc` is missing.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_session_key"
    },
    "bad_signature": {
      "status": 400,
      "where": [
        "account"
      ],
      "meaning": "Stripe webhook signature check failed.",
      "docs": "https://jsflow.com/docs/reference/errors/#bad_signature"
    },
    "blocked": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "The user, peer or IP is on the app's blocklist.",
      "docs": "https://jsflow.com/docs/reference/errors/#blocked"
    },
    "blocklist_full": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "The app's blocklist is full (10,000 entries); remove some first.",
      "docs": "https://jsflow.com/docs/reference/errors/#blocklist_full"
    },
    "cap_below_fee": {
      "status": 400,
      "where": [
        "account"
      ],
      "meaning": "A spend cap below the plan's fee.",
      "docs": "https://jsflow.com/docs/reference/errors/#cap_below_fee"
    },
    "code_wrong": {
      "status": 400,
      "where": [
        "account"
      ],
      "meaning": "The 6-character code does not match (five tries per link).",
      "docs": "https://jsflow.com/docs/reference/errors/#code_wrong"
    },
    "confirm_required": {
      "status": null,
      "where": [
        "cli"
      ],
      "meaning": "A destructive command needs --confirm <id>. The plan is in the error. Exit code 4.",
      "docs": "https://jsflow.com/docs/reference/errors/#confirm_required"
    },
    "consent": {
      "status": 400,
      "where": [
        "account"
      ],
      "meaning": "Checkout: the terms or pre-contract information accepted is not today's version or not for this market, or the request to start now is missing.",
      "docs": "https://jsflow.com/docs/reference/errors/#consent"
    },
    "country": {
      "status": 403,
      "where": [
        "account"
      ],
      "meaning": "Buying is not available for this country: a restricted territory, or a consumer purchase where it is not enabled yet (a company can buy).",
      "docs": "https://jsflow.com/docs/reference/errors/#country"
    },
    "csrf": {
      "status": 403,
      "where": [
        "account"
      ],
      "meaning": "A state-changing call from anywhere but the dashboard origin.",
      "docs": "https://jsflow.com/docs/reference/errors/#csrf"
    },
    "cursor_expired": {
      "status": 410,
      "where": [
        "account"
      ],
      "meaning": "A paging cursor over a live snapshot is older than 60 s; start again from the first page.",
      "docs": "https://jsflow.com/docs/reference/errors/#cursor_expired"
    },
    "draining": {
      "status": 503,
      "where": [
        "signalling"
      ],
      "meaning": "The service is draining for a deploy; retry, the SDK reconnects elsewhere.",
      "docs": "https://jsflow.com/docs/reference/errors/#draining"
    },
    "email_unverified": {
      "status": null,
      "where": [
        "account"
      ],
      "meaning": "Sign-in callback only: no primary verified email at GitHub, or Google says not verified.",
      "docs": "https://jsflow.com/docs/reference/errors/#email_unverified"
    },
    "expired_token": {
      "status": 400,
      "where": [
        "cli"
      ],
      "meaning": "The device code expired before it was approved. Exit code 3: run `jsflow login` again.",
      "docs": "https://jsflow.com/docs/reference/errors/#expired_token"
    },
    "forbidden": {
      "status": 403,
      "where": [
        "account"
      ],
      "meaning": "Not a member of the account, or an owner-only action.",
      "docs": "https://jsflow.com/docs/reference/errors/#forbidden"
    },
    "has_subscription": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "Use a plan change or the portal, not Checkout.",
      "docs": "https://jsflow.com/docs/reference/errors/#has_subscription"
    },
    "human_required": {
      "status": 403,
      "where": [
        "account"
      ],
      "meaning": "Only a person can do this (money, deletion, members, webhooks, tokens); `url` opens the dashboard page for it.",
      "docs": "https://jsflow.com/docs/reference/errors/#human_required"
    },
    "idempotency_conflict": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "An Idempotency-Key reused with a different request body.",
      "docs": "https://jsflow.com/docs/reference/errors/#idempotency_conflict"
    },
    "identity_in_use": {
      "status": null,
      "where": [
        "account"
      ],
      "meaning": "Sign-in callback only (link mode): that identity belongs to another user.",
      "docs": "https://jsflow.com/docs/reference/errors/#identity_in_use"
    },
    "insufficient_scope": {
      "status": 403,
      "where": [
        "account"
      ],
      "meaning": "The access token lacks the scope this needs; `scope` names it. Grant a token with it.",
      "docs": "https://jsflow.com/docs/reference/errors/#insufficient_scope"
    },
    "internal": {
      "status": 500,
      "where": [
        "account",
        "signalling"
      ],
      "meaning": "Our bug; logged with the request id.",
      "docs": "https://jsflow.com/docs/reference/errors/#internal"
    },
    "invitation_expired": {
      "status": 410,
      "where": [
        "account"
      ],
      "meaning": "The invitation expired or was withdrawn.",
      "docs": "https://jsflow.com/docs/reference/errors/#invitation_expired"
    },
    "key_limit": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "Two active keys of that kind already.",
      "docs": "https://jsflow.com/docs/reference/errors/#key_limit"
    },
    "last_identity": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "The only sign-in method cannot be removed.",
      "docs": "https://jsflow.com/docs/reference/errors/#last_identity"
    },
    "last_key": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "Revoking the last active publishable key needs `confirm=last`.",
      "docs": "https://jsflow.com/docs/reference/errors/#last_key"
    },
    "last_owner": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "An account keeps at least one owner.",
      "docs": "https://jsflow.com/docs/reference/errors/#last_owner"
    },
    "limit": {
      "status": 402,
      "where": [
        "account"
      ],
      "meaning": "An app limit above the plan's.",
      "docs": "https://jsflow.com/docs/reference/errors/#limit"
    },
    "link_expired": {
      "status": 410,
      "where": [
        "account"
      ],
      "meaning": "The sign-in link or code expired or was used.",
      "docs": "https://jsflow.com/docs/reference/errors/#link_expired"
    },
    "method_not_allowed": {
      "status": 405,
      "where": [
        "signalling"
      ],
      "meaning": "The method is not allowed on this path; `allow` lists the ones that are.",
      "docs": "https://jsflow.com/docs/reference/errors/#method_not_allowed"
    },
    "network": {
      "status": null,
      "where": [
        "cli"
      ],
      "meaning": "The CLI could not reach the API. Exit code 7: retry.",
      "docs": "https://jsflow.com/docs/reference/errors/#network"
    },
    "no_secret_key": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "`requireTickets` needs an active secret key.",
      "docs": "https://jsflow.com/docs/reference/errors/#no_secret_key"
    },
    "no_subscription": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "No subscription yet; use Checkout.",
      "docs": "https://jsflow.com/docs/reference/errors/#no_subscription"
    },
    "not_found": {
      "status": 404,
      "where": [
        "account",
        "signalling"
      ],
      "meaning": "No such account, app, key, session, room or file (or not yours).",
      "docs": "https://jsflow.com/docs/reference/errors/#not_found"
    },
    "not_invited": {
      "status": 403,
      "where": [
        "account"
      ],
      "meaning": "jsflow is in early access, by invitation: this address may not create an account yet. Join the waitlist at https://jsflow.com/waitlist/ (S99). Existing users always sign in; a sign-in callback redirects to /signin?error=not_invited.",
      "docs": "https://jsflow.com/docs/reference/errors/#not_invited"
    },
    "not_yours": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "Withdrawing another peer's offer from the pool.",
      "docs": "https://jsflow.com/docs/reference/errors/#not_yours"
    },
    "oauth_denied": {
      "status": null,
      "where": [
        "account"
      ],
      "meaning": "Sign-in callback only (`/signin?error=`): the user declined at the provider.",
      "docs": "https://jsflow.com/docs/reference/errors/#oauth_denied"
    },
    "oauth_failed": {
      "status": null,
      "where": [
        "account"
      ],
      "meaning": "Sign-in callback only: the provider exchange failed.",
      "docs": "https://jsflow.com/docs/reference/errors/#oauth_failed"
    },
    "oauth_state": {
      "status": null,
      "where": [
        "account"
      ],
      "meaning": "Sign-in callback only: the state did not match this browser, or expired.",
      "docs": "https://jsflow.com/docs/reference/errors/#oauth_state"
    },
    "origin": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "The Origin is not allowed for this app, or absent on `/join`.",
      "docs": "https://jsflow.com/docs/reference/errors/#origin"
    },
    "over_limit": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "The new plan allows fewer apps or seats than are in use; `message` says which.",
      "docs": "https://jsflow.com/docs/reference/errors/#over_limit"
    },
    "payment_failed": {
      "status": 402,
      "where": [
        "account"
      ],
      "meaning": "An upgrade's prorated charge was declined or needs the card holder's confirmation; the plan is unchanged.",
      "docs": "https://jsflow.com/docs/reference/errors/#payment_failed"
    },
    "plan": {
      "status": 402,
      "where": [
        "account"
      ],
      "meaning": "The feature needs another plan (region pinning, webhooks: Scale; Free has no adjustable cap).",
      "docs": "https://jsflow.com/docs/reference/errors/#plan"
    },
    "pool_full": {
      "status": [
        429,
        503
      ],
      "where": [
        "signalling"
      ],
      "meaning": "Parked offers per room (429, `max`) or pool items per server (503).",
      "docs": "https://jsflow.com/docs/reference/errors/#pool_full"
    },
    "quota": {
      "status": 402,
      "where": [
        "signalling"
      ],
      "meaning": "The account's quota or spend cap is reached (joins stop until it is raised or the period ends).",
      "docs": "https://jsflow.com/docs/reference/errors/#quota"
    },
    "rate": {
      "status": 429,
      "where": [
        "account",
        "signalling"
      ],
      "meaning": "Too many requests; retry after `Retry-After`.",
      "docs": "https://jsflow.com/docs/reference/errors/#rate"
    },
    "reauth": {
      "status": 401,
      "where": [
        "account"
      ],
      "meaning": "This needs a sign-in in the last 10 minutes.",
      "docs": "https://jsflow.com/docs/reference/errors/#reauth"
    },
    "room_full": {
      "status": 409,
      "where": [
        "signalling"
      ],
      "meaning": "The room is at its peer limit (`max`).",
      "docs": "https://jsflow.com/docs/reference/errors/#room_full"
    },
    "sdk_unsupported": {
      "status": 426,
      "where": [
        "signalling"
      ],
      "meaning": "The client's SDK version is no longer supported.",
      "docs": "https://jsflow.com/docs/reference/errors/#sdk_unsupported"
    },
    "seats": {
      "status": 402,
      "where": [
        "account"
      ],
      "meaning": "The plan's seat limit.",
      "docs": "https://jsflow.com/docs/reference/errors/#seats"
    },
    "server_full": {
      "status": 503,
      "where": [
        "signalling"
      ],
      "meaning": "The server's open-room limit; retry, possibly elsewhere.",
      "docs": "https://jsflow.com/docs/reference/errors/#server_full"
    },
    "slow_down": {
      "status": 400,
      "where": [
        "cli"
      ],
      "meaning": "The device login is being polled too fast (RFC 8628); the CLI slows down.",
      "docs": "https://jsflow.com/docs/reference/errors/#slow_down"
    },
    "superseded": {
      "status": 409,
      "where": [
        "signalling"
      ],
      "meaning": "A newer incarnation holds this peer id (`superseded`: its inc).",
      "docs": "https://jsflow.com/docs/reference/errors/#superseded"
    },
    "suspended": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "The account or app is suspended.",
      "docs": "https://jsflow.com/docs/reference/errors/#suspended"
    },
    "ticket_expired": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "The ticket's `exp` has passed.",
      "docs": "https://jsflow.com/docs/reference/errors/#ticket_expired"
    },
    "ticket_invalid": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "The ticket's signature, app, room or key id does not verify.",
      "docs": "https://jsflow.com/docs/reference/errors/#ticket_invalid"
    },
    "ticket_required": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "The app requires join tickets and none was given.",
      "docs": "https://jsflow.com/docs/reference/errors/#ticket_required"
    },
    "too_large": {
      "status": 413,
      "where": [
        "signalling"
      ],
      "meaning": "The body is over the size limit (`max`).",
      "docs": "https://jsflow.com/docs/reference/errors/#too_large"
    },
    "too_many_rooms": {
      "status": 429,
      "where": [
        "signalling"
      ],
      "meaning": "The app's open-room limit (`max`).",
      "docs": "https://jsflow.com/docs/reference/errors/#too_many_rooms"
    },
    "too_many_streams": {
      "status": 429,
      "where": [
        "signalling"
      ],
      "meaning": "Too many open event streams from this IP.",
      "docs": "https://jsflow.com/docs/reference/errors/#too_many_streams"
    },
    "unauthorized": {
      "status": 401,
      "where": [
        "account",
        "signalling"
      ],
      "meaning": "No valid credentials: the session, token or key is missing, expired or revoked.",
      "docs": "https://jsflow.com/docs/reference/errors/#unauthorized"
    },
    "unavailable": {
      "status": 503,
      "where": [
        "account"
      ],
      "meaning": "A dependency (the database, the payment provider, an instance) did not answer; retry.",
      "docs": "https://jsflow.com/docs/reference/errors/#unavailable"
    },
    "unknown": {
      "status": 0,
      "where": [
        "sdk"
      ],
      "meaning": "The answer was not the service's JSON (a proxy's or CDN's error page, for example); see `status`. Raised by the SDK; the service never sends it.",
      "docs": "https://jsflow.com/docs/reference/errors/#unknown"
    },
    "unknown_app": {
      "status": 403,
      "where": [
        "signalling"
      ],
      "meaning": "Unknown publishable key, or the room's app does not exist.",
      "docs": "https://jsflow.com/docs/reference/errors/#unknown_app"
    },
    "unsupported_browser": {
      "status": 0,
      "where": [
        "sdk"
      ],
      "meaning": "The browser lacks Web Crypto Ed25519 or X25519, which every peer needs to seal and sign; update the browser (Chrome and Edge 137, Safari 17, Firefox 130). Raised by the SDK before any request; the service never sends it.",
      "docs": "https://jsflow.com/docs/reference/errors/#unsupported_browser"
    },
    "usage": {
      "status": null,
      "where": [
        "cli"
      ],
      "meaning": "The command line is wrong (an unknown flag, a missing argument, an invalid value). Exit code 2; nothing was sent.",
      "docs": "https://jsflow.com/docs/reference/errors/#usage"
    },
    "vat_invalid": {
      "status": 422,
      "where": [
        "account"
      ],
      "meaning": "Checkout: VIES says this EU VAT number is not valid; correct it, or buy with VAT (withoutTaxId).",
      "docs": "https://jsflow.com/docs/reference/errors/#vat_invalid"
    },
    "vies_unavailable": {
      "status": 503,
      "where": [
        "account"
      ],
      "meaning": "Checkout: the EU's VAT check did not answer; try later, or buy with VAT (withoutTaxId).",
      "docs": "https://jsflow.com/docs/reference/errors/#vies_unavailable"
    },
    "want_not_allowed": {
      "status": 400,
      "where": [
        "signalling"
      ],
      "meaning": "`want` was sent, and this service does not allow it.",
      "docs": "https://jsflow.com/docs/reference/errors/#want_not_allowed"
    },
    "wire": {
      "status": 409,
      "where": [
        "signalling"
      ],
      "meaning": "The client's wire version is not supported.",
      "docs": "https://jsflow.com/docs/reference/errors/#wire"
    },
    "withdrawal_closed": {
      "status": 409,
      "where": [
        "account"
      ],
      "meaning": "No withdrawal is possible: a company, a country without the right, the 14 days have passed, the subscription has ended, or it was already withdrawn (the message says which).",
      "docs": "https://jsflow.com/docs/reference/errors/#withdrawal_closed"
    },
    "worker_failed": {
      "status": 0,
      "where": [
        "sdk"
      ],
      "meaning": "The SDK's worker did not start (it failed to load or did not answer within 20 s), twice; joining again usually works. Raised by the SDK; the service never sends it.",
      "docs": "https://jsflow.com/docs/reference/errors/#worker_failed"
    },
    "wrong_home": {
      "status": 409,
      "where": [
        "signalling"
      ],
      "meaning": "The room lives on another server; repeat the join there (`home`; `near` names a region). The SDK does this itself, at most two hops.",
      "docs": "https://jsflow.com/docs/reference/errors/#wrong_home"
    }
  }
}
