# Error codes

> Every error code the account API, the signalling service and the CLI use, with its status and meaning.

One list of codes is shared by the account API, the server API, the signalling service, the SDK's `JoinError.code`, the usage records' `status`, and the CLI. A code is a word, so what a person sees in the dashboard, what an SDK throws and what an agent reads from the CLI are the same. Adding a code is additive; a code is never renamed. The same list as data: [errors.json](https://jsflow.com/docs/errors.json).

## `access_denied`

The person denied the device login. Exit code 3.

- **Status:** 400
- **Where:** CLI

## `already_member`

That person is already a member, or invited.

- **Status:** 409
- **Where:** account API

## `app_id_taken`

The app id is or was used by an account.

- **Status:** 409
- **Where:** account API

## `apps`

The plan's app limit.

- **Status:** 402
- **Where:** account API

## `authorization_pending`

The device login has not been approved yet (RFC 8628); the CLI keeps polling.

- **Status:** 400
- **Where:** CLI

## `bad_blob`

`/signal` `blob` is not a string.

- **Status:** 400
- **Where:** joining

## `bad_id`

An id is not an integer 0-65534; the field is named in `message`.

- **Status:** 400
- **Where:** joining

## `bad_inc`

`inc` is not an integer 1 to 2^32-1.

- **Status:** 400
- **Where:** joining

## `bad_json`

The body is not a JSON object.

- **Status:** 400
- **Where:** joining

## `bad_kind`

`/signal` `kind` is not an integer 0-255.

- **Status:** 400
- **Where:** joining

## `bad_path`

A static file path that does not decode.

- **Status:** 400
- **Where:** joining

## `bad_pool_token`

The pool token is invalid or expired.

- **Status:** 403
- **Where:** joining

## `bad_pub`

`pub` is not base64 of 32 bytes.

- **Status:** 400
- **Where:** joining

## `bad_request`

The request is malformed or a field is invalid; `message` names the field.

- **Status:** 400
- **Where:** account API, joining

## `bad_room`

The room name does not match its pattern (`want` names it).

- **Status:** 400
- **Where:** joining

## `bad_session_key`

The session key does not match (room, id, inc), or `inc` is missing.

- **Status:** 403
- **Where:** joining

## `bad_signature`

Stripe webhook signature check failed.

- **Status:** 400
- **Where:** account API

## `blocked`

The user, peer or IP is on the app's blocklist.

- **Status:** 403
- **Where:** joining

## `blocklist_full`

The app's blocklist is full (10,000 entries); remove some first.

- **Status:** 409
- **Where:** account API

## `cap_below_fee`

A spend cap below the plan's fee.

- **Status:** 400
- **Where:** account API

## `code_wrong`

The 6-character code does not match (five tries per link).

- **Status:** 400
- **Where:** account API

## `confirm_required`

A destructive command needs --confirm <id>. The plan is in the error. Exit code 4.

- **Status:** – (not an HTTP error)
- **Where:** CLI

## `consent`

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.

- **Status:** 400
- **Where:** account API

## `country`

Buying is not available for this country: a restricted territory, or a consumer purchase where it is not enabled yet (a company can buy).

- **Status:** 403
- **Where:** account API

## `csrf`

A state-changing call from anywhere but the dashboard origin.

- **Status:** 403
- **Where:** account API

## `cursor_expired`

A paging cursor over a live snapshot is older than 60 s; start again from the first page.

- **Status:** 410
- **Where:** account API

## `draining`

The service is draining for a deploy; retry, the SDK reconnects elsewhere.

- **Status:** 503
- **Where:** joining

## `email_unverified`

Sign-in callback only: no primary verified email at GitHub, or Google says not verified.

- **Status:** – (not an HTTP error)
- **Where:** account API

## `expired_token`

The device code expired before it was approved. Exit code 3: run `jsflow login` again.

- **Status:** 400
- **Where:** CLI

## `forbidden`

Not a member of the account, or an owner-only action.

- **Status:** 403
- **Where:** account API

## `has_subscription`

Use a plan change or the portal, not Checkout.

- **Status:** 409
- **Where:** account API

## `human_required`

Only a person can do this (money, deletion, members, webhooks, tokens); `url` opens the dashboard page for it.

- **Status:** 403
- **Where:** account API

## `idempotency_conflict`

An Idempotency-Key reused with a different request body.

- **Status:** 409
- **Where:** account API

## `identity_in_use`

Sign-in callback only (link mode): that identity belongs to another user.

- **Status:** – (not an HTTP error)
- **Where:** account API

## `insufficient_scope`

The access token lacks the scope this needs; `scope` names it. Grant a token with it.

- **Status:** 403
- **Where:** account API

## `internal`

Our bug; logged with the request id.

- **Status:** 500
- **Where:** account API, joining

## `invitation_expired`

The invitation expired or was withdrawn.

- **Status:** 410
- **Where:** account API

## `key_limit`

Two active keys of that kind already.

- **Status:** 409
- **Where:** account API

## `last_identity`

The only sign-in method cannot be removed.

- **Status:** 409
- **Where:** account API

## `last_key`

Revoking the last active publishable key needs `confirm=last`.

- **Status:** 409
- **Where:** account API

## `last_owner`

An account keeps at least one owner.

- **Status:** 409
- **Where:** account API

## `limit`

An app limit above the plan's.

- **Status:** 402
- **Where:** account API

## `link_expired`

The sign-in link or code expired or was used.

- **Status:** 410
- **Where:** account API

## `method_not_allowed`

The method is not allowed on this path; `allow` lists the ones that are.

- **Status:** 405
- **Where:** joining

## `network`

The CLI could not reach the API. Exit code 7: retry.

- **Status:** – (not an HTTP error)
- **Where:** CLI

## `no_secret_key`

`requireTickets` needs an active secret key.

- **Status:** 409
- **Where:** account API

## `no_subscription`

No subscription yet; use Checkout.

- **Status:** 409
- **Where:** account API

## `not_found`

No such account, app, key, session, room or file (or not yours).

- **Status:** 404
- **Where:** account API, joining

## `not_invited`

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.

- **Status:** 403
- **Where:** account API

## `not_yours`

Withdrawing another peer's offer from the pool.

- **Status:** 403
- **Where:** joining

## `oauth_denied`

Sign-in callback only (`/signin?error=`): the user declined at the provider.

- **Status:** – (not an HTTP error)
- **Where:** account API

## `oauth_failed`

Sign-in callback only: the provider exchange failed.

- **Status:** – (not an HTTP error)
- **Where:** account API

## `oauth_state`

Sign-in callback only: the state did not match this browser, or expired.

- **Status:** – (not an HTTP error)
- **Where:** account API

## `origin`

The Origin is not allowed for this app, or absent on `/join`.

- **Status:** 403
- **Where:** joining

## `over_limit`

The new plan allows fewer apps or seats than are in use; `message` says which.

- **Status:** 409
- **Where:** account API

## `payment_failed`

An upgrade's prorated charge was declined or needs the card holder's confirmation; the plan is unchanged.

- **Status:** 402
- **Where:** account API

## `plan`

The feature needs another plan (region pinning, webhooks: Scale; Free has no adjustable cap).

- **Status:** 402
- **Where:** account API

## `pool_full`

Parked offers per room (429, `max`) or pool items per server (503).

- **Status:** 429 or 503
- **Where:** joining

## `quota`

The account's quota or spend cap is reached (joins stop until it is raised or the period ends).

- **Status:** 402
- **Where:** joining

## `rate`

Too many requests; retry after `Retry-After`.

- **Status:** 429
- **Where:** account API, joining

## `reauth`

This needs a sign-in in the last 10 minutes.

- **Status:** 401
- **Where:** account API

## `room_full`

The room is at its peer limit (`max`).

- **Status:** 409
- **Where:** joining

## `sdk_unsupported`

The client's SDK version is no longer supported.

- **Status:** 426
- **Where:** joining

## `seats`

The plan's seat limit.

- **Status:** 402
- **Where:** account API

## `server_full`

The server's open-room limit; retry, possibly elsewhere.

- **Status:** 503
- **Where:** joining

## `slow_down`

The device login is being polled too fast (RFC 8628); the CLI slows down.

- **Status:** 400
- **Where:** CLI

## `superseded`

A newer incarnation holds this peer id (`superseded`: its inc).

- **Status:** 409
- **Where:** joining

## `suspended`

The account or app is suspended.

- **Status:** 403
- **Where:** joining

## `ticket_expired`

The ticket's `exp` has passed.

- **Status:** 403
- **Where:** joining

## `ticket_invalid`

The ticket's signature, app, room or key id does not verify.

- **Status:** 403
- **Where:** joining

## `ticket_required`

The app requires join tickets and none was given.

- **Status:** 403
- **Where:** joining

## `too_large`

The body is over the size limit (`max`).

- **Status:** 413
- **Where:** joining

## `too_many_rooms`

The app's open-room limit (`max`).

- **Status:** 429
- **Where:** joining

## `too_many_streams`

Too many open event streams from this IP.

- **Status:** 429
- **Where:** joining

## `unauthorized`

No valid credentials: the session, token or key is missing, expired or revoked.

- **Status:** 401
- **Where:** account API, joining

## `unavailable`

A dependency (the database, the payment provider, an instance) did not answer; retry.

- **Status:** 503
- **Where:** account API

## `unknown`

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.

- **Status:** 0
- **Where:** sdk

## `unknown_app`

Unknown publishable key, or the room's app does not exist.

- **Status:** 403
- **Where:** joining

## `unsupported_browser`

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.

- **Status:** 0
- **Where:** sdk

## `usage`

The command line is wrong (an unknown flag, a missing argument, an invalid value). Exit code 2; nothing was sent.

- **Status:** – (not an HTTP error)
- **Where:** CLI

## `vat_invalid`

Checkout: VIES says this EU VAT number is not valid; correct it, or buy with VAT (withoutTaxId).

- **Status:** 422
- **Where:** account API

## `vies_unavailable`

Checkout: the EU's VAT check did not answer; try later, or buy with VAT (withoutTaxId).

- **Status:** 503
- **Where:** account API

## `want_not_allowed`

`want` was sent, and this service does not allow it.

- **Status:** 400
- **Where:** joining

## `wire`

The client's wire version is not supported.

- **Status:** 409
- **Where:** joining

## `withdrawal_closed`

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).

- **Status:** 409
- **Where:** account API

## `worker_failed`

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.

- **Status:** 0
- **Where:** sdk

## `wrong_home`

The room lives on another server; repeat the join there (`home`; `near` names a region). The SDK does this itself, at most two hops.

- **Status:** 409
- **Where:** joining

Source: https://jsflow.com/docs/reference/errors/
