---
title: "Errors"
description: "Every code the package refuses with: the fields it carries, the English label, the status an auth route answers with, and what to do about it."
canonical_url: "https://nuxt-backend.dev/docs/reference/backend/errors"
---
# Errors

> Every code the package refuses with: the fields it carries, the English label, the status an auth route answers with, and what to do about it.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [API reference](https://nuxt-backend.dev/docs/reference/api/functions)
- [Source](https://github.com/qruto/nuxt-backend/blob/main/src/convex/errors.ts)

This page lists every code the package refuses with, the fields it carries, its English label, the status an auth route answers with, and what to do about it. Branch on a code in your UI, and look up a reason here when a refusal surprises you.

## How a refusal reaches you

A refusal from a package function is a `ConvexError` whose data is `{ code, ...fields }`. Convex sends that data to the client in production too, where any other error arrives as "Server Error". An auth route refuses with the same code and fields in its error body, at the status below. [`getBackendError(error)`](https://nuxt-backend.dev/docs/build/data/read-write/errors) reads both and returns `{ code, data, message }`. `BACKEND_ERRORS` in `nuxt-backend/functions` holds the catalog, and `pnpm docs:lookups` writes this page's codes from it. `/e/<code>` links to the code's entry below.

`message` is the sentence to show: the throw site's own sentence for the person when it wrote one (`data.message`), else the code's label from the `errors` group. Some reasons have a label of their own (`errors.<code>_<reason>`), and a label with numbers in it is used only when the numbers are there. The English the deployment log shows is the error's `message` property, which production never sends to the client.

The package's own auth refusals write no `data.message`, so a person always reads them in their language. An auth route's error body still carries a `message`, for a client that reads the body raw: the code's English label, which `getBackendError` recognizes as the label and leaves out of `data`. Only a sentence an app wrote, such as its `canSignIn` refusal, travels as written. A few billing refusals still write an English sentence of their own in `data.message`, shown as written in every language: `customer_taken`, `customer_unknown`, `already_subscribed`, `not_billing_manager`, `provider_owner_only` and `gift_refused` (where a `canGift` message of yours goes too).

`errorMessage` ([`useLabels`](https://nuxt-backend.dev/docs/reference/api/use-labels)) picks the label by specificity, in this order: the label with the refusal's numbers, `errors.<code>_<reason>`, `errors.invalid_input_<field>`, `errors.unavailable_<service>`, then `errors.<code>`. It walks that order through your own labels first, one source at a time: your app config's `labels.errors`, then the active locale's `@nuxtjs/i18n` messages, and only then the package's English. So your `errors.<code>` words every refusal of that code, over the package's label for its reason, field or service ([Change copy and labels](https://nuxt-backend.dev/docs/build/ui/customize/labels#the-groups)).

Every field in `data` is optional on the read side, the required ones too: the reader keeps only the fields that fit the catalog, so check the one you use before you rely on it.

## Codes

Each entry is generated from the catalog: its data fields and status from `BACKEND_ERRORS`, its label from the `errors` group of the [labels](https://nuxt-backend.dev/docs/reference/configuration/labels#errors).

### `unauthenticated`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        message?
      </code>
    </td>
    
    <td>
      Sign in to continue.
    </td>
    
    <td>
      401
    </td>
    
    <td>
      Show the message. If nobody is signed in, send the person to sign in, then retry.
    </td>
  </tr>
</tbody>
</table>

Better Auth answers some of its own refusals with 401 too, and the reader maps them here with Better Auth's message: a wrong password on a sign-in form, for one, where the person is already on the sign-in page and only needs the message.

### `forbidden`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        reason
      </code>
      
      , <code>
        message?
      </code>
      
      , <code>
        phase?
      </code>
      
      , <code>
        invite?
      </code>
      
      , <code>
        kind?
      </code>
      
      , <code>
        until?
      </code>
      
      , <code>
        waitlist?
      </code>
    </td>
    
    <td>
      You don't have access to this.
    </td>
    
    <td>
      403
    </td>
    
    <td>
      Show the message; <code>
        reason
      </code>
      
       says what would change the answer.
    </td>
  </tr>
</tbody>
</table>

### `reauthentication_required`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        message?
      </code>
    </td>
    
    <td>
      Confirm it's you to continue: this needs a recent sign-in.
    </td>
    
    <td>
      403
    </td>
    
    <td>
      Ask the person to sign in again, then retry: <code>
        useReauthentication().withReauthentication(action)
      </code>
      
       does both.
    </td>
  </tr>
</tbody>
</table>

A sensitive action, refused because the session's sign-in is older than it takes (ten minutes for the package's own): an auth route of the [sensitive-action table](https://nuxt-backend.dev/docs/build/auth/access/step-up#which-actions-ask), an admin write, or a function of yours with `recentSignIn` or `requireRecentSignIn`. Signing in again opens a new session; an agent's token and an administrator's visit never pass, and are refused as `forbidden` instead.

### `no_workspace`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        message?
      </code>
    </td>
    
    <td>
      Create or choose a workspace first.
    </td>
    
    <td>
      409
    </td>
    
    <td>
      Offer the workspace switcher, or create one.
    </td>
  </tr>
</tbody>
</table>

### `rate_limited`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        retryAfter?
      </code>
      
       (ms), <code>
        limit?
      </code>
      
      , <code>
        plans?
      </code>
      
      , <code>
        message?
      </code>
    </td>
    
    <td>
      Too many requests. Try again in a moment.
    </td>
    
    <td>
      429
    </td>
    
    <td>
      Wait <code>
        retryAfter
      </code>
      
      , then retry. <code>
        limit
      </code>
      
       names the spent limit.
    </td>
  </tr>
</tbody>
</table>

### `insufficient_credits`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        meter?
      </code>
      
      , <code>
        balance
      </code>
      
      , <code>
        need
      </code>
      
      , <code>
        message?
      </code>
    </td>
    
    <td>
      Not enough credits. Top up to continue.
    </td>
    
    <td>
      402
    </td>
    
    <td>
      Offer a credit pack or a plan with more credits.
    </td>
  </tr>
</tbody>
</table>

With both amounts, the label reads "Not enough credits: {balance} left, {need} needed. Top up to continue." (`errors.insufficient_credits_amounts`).

### `feature_required`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        feature
      </code>
      
      , <code>
        plans
      </code>
      
      , <code>
        message?
      </code>
    </td>
    
    <td>
      Your plan doesn't include this. Upgrade to use it.
    </td>
    
    <td>
      402
    </td>
    
    <td>
      Offer the plans in <code>
        plans
      </code>
      
      : <code>
        <UpgradePrompt :plans>
      </code>
      
       links to the first on the pricing page.
    </td>
  </tr>
</tbody>
</table>

Thrown by `billing.requireFeature` and the `withFeature` tier of `createFunctions` when the billing entity's plan does not grant the feature, read from the entitlement cache. `feature` is the catalog key asked for; `plans` the catalog keys of the plans on sale that include it, in pricing order, empty when none does. A caller who may not read the entity's billing at all is refused for that first. See [Feature gating](https://nuxt-backend.dev/docs/build/billing/subscriptions/feature-gating#the-refusal).

### `quota_exceeded`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        quota
      </code>
      
      , <code>
        limit
      </code>
      
      , <code>
        used
      </code>
      
      , <code>
        amount
      </code>
      
      , <code>
        plans
      </code>
      
      , <code>
        message?
      </code>
    </td>
    
    <td>
      Your plan's limit is reached. Upgrade for more.
    </td>
    
    <td>
      402
    </td>
    
    <td>
      Say how many are used of how many, and offer the plans in <code>
        plans
      </code>
      
      , or ask the person to remove one first.
    </td>
  </tr>
</tbody>
</table>

Experimental. Thrown by `billing.requireQuota`, and by `storage.store` and `storage.claim` for `setupStorage`'s `quota` (`quota` is the catalog key, or `files` or `bytes` for a number), when `amount` more of the `quota` do not fit what the billing entity's plan allows: `limit` is the most any grant allows (`0` when none names the quota), `used` how many are counted, and `plans` the catalog keys of the plans on sale that allow `used + amount`, in pricing order, empty when none does. Nothing is counted for a refused call. See [Limit resources per plan](https://nuxt-backend.dev/docs/build/billing/subscriptions/quotas#the-refusal).

### `invalid_input`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        field
      </code>
      
      , <code>
        reason?
      </code>
      
      , <code>
        need?
      </code>
      
      , <code>
        units?
      </code>
      
      , <code>
        message?
      </code>
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
    
    <td>
      400
    </td>
    
    <td>
      Mark <code>
        field
      </code>
      
       and show the message.
    </td>
  </tr>
</tbody>
</table>

A checkout, a gift checkout, a plan change and the portal refuse what only the server may choose with this code: `productIds`, `productId` or `pack` outside the catalog (a plan change to a credit pack too), an `origin`, `successUrl` or `returnUrl` off the site, reserved `metadata` keys, a client's `trialInterval`, `trialIntervalCount` or `discountId`, a `trial` from server code that is not 1 to 30 days in days or weeks, a `discountCode` the provider does not accept, and a `discount` that names no catalog promotion a client may name (one with a code), applies to none of the checkout's products or is no longer redeemed (`field: 'discount'`; `billing.applyDiscount` refuses the same way, and a checkout naming two discounts too). See [What the server decides](https://nuxt-backend.dev/docs/build/billing/subscriptions/checkout#what-the-server-decides). `billing.requireFeature` refuses an empty feature with it (`field: 'feature'`), and `billing.requireQuota` and `releaseQuota` an empty quota (`field: 'quota'`) or an `amount` that is not a whole number above zero (`field: 'amount'`).

### `not_ready`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        reason
      </code>
      
      , <code>
        message?
      </code>
    </td>
    
    <td>
      Nothing to show yet.
    </td>
    
    <td>
      409
    </td>
    
    <td>
      Don't offer a retry: something has to happen first. <code>
        reason
      </code>
      
       says what (below).
    </td>
  </tr>
</tbody>
</table>

### `unavailable`

<table>
<thead>
  <tr>
    <th>
      Data
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      Status
    </th>
    
    <th>
      Handling
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        service
      </code>
      
      , <code>
        reason
      </code>
      
      , <code>
        message?
      </code>
    </td>
    
    <td>
      This isn't available right now. Try again shortly.
    </td>
    
    <td>
      503
    </td>
    
    <td>
      Retry later for <code>
        provider_refused
      </code>
      
      , and for <code>
        refund_refused
      </code>
      
       only once what refused it is settled (its row below says what); the other reasons need the deployment fixed, and <code>
        reason
      </code>
      
       tells an operator what.
    </td>
  </tr>
</tbody>
</table>

## Reasons

The `forbidden` reasons the package throws:

<table>
<thead>
  <tr>
    <th>
      Reason
    </th>
    
    <th>
      When
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        banned
      </code>
    </td>
    
    <td>
      The account is banned: a call it makes, or its sign-in (Better Auth's <code>
        BANNED_USER
      </code>
      
      ). A ban with an end carries it in <code>
        until
      </code>
      
      , in milliseconds, and the label names it: "This account is banned until {date}."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        role
      </code>
      
       · <code>
        permission
      </code>
    </td>
    
    <td>
      The account's role lacks the role or the permission statement the call requires.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        not_member
      </code>
      
       · <code>
        workspace_role
      </code>
    </td>
    
    <td>
      The caller is not a member of the workspace, or lacks the workspace role: read fresh from the member table, so someone removed is refused on their next call, a billing call or a spend included.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin_only
      </code>
    </td>
    
    <td>
      A billing admin function (<code>
        refundOrder
      </code>
      
      , the webhook log) and the account is no admin, its role read fresh.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        not_owner
      </code>
    </td>
    
    <td>
      The order or subscription belongs to another account, or the order does not exist: the two answer alike.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        impersonating
      </code>
    </td>
    
    <td>
      An administrator acting as this account tried something only its owner may do: spending its credits, changing its billing, signing its devices out, an admin function's write, or anything that takes a recent sign-in, which only the owner's own sign-in gives.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin_target
      </code>
    </td>
    
    <td>
      A caller who may impersonate tried to impersonate an administrator's account, their own included: an administrator's account is never visited, whoever asks and whatever the app's roles grant (<a href="https://nuxt-backend.dev/docs/build/auth/admin/impersonation">
        Impersonation
      </a>
      
      ). Better Auth's own refusal of one reads the same.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkey_only_admin
      </code>
    </td>
    
    <td>
      On a <code>
        sandbox
      </code>
      
       deployment, an administrator whose account is not passkey-only, or whose session no passkey signed in to, called an admin gate: the <code>
        admin
      </code>
      
       tier, the admin console, billing's admin functions, <code>
        listAllActivity
      </code>
      
       or one of Better Auth's <code>
        /admin/*
      </code>
      
       routes. The console's reads answer <code>
        null
      </code>
      
      , the rest refuse. A public demo's dev inbox shows sign-in codes, so its administrators sign in with a passkey, on a passkey-only account (<a href="https://nuxt-backend.dev/docs/ship/deploy/staging#what-a-demo-refuses">
        What a demo refuses
      </a>
      
      ). Label: "On this demo, administrators sign in with a passkey, on an account that signs in with passkeys only. Turn on passkey-only sign-in in your security settings, then sign in again with your passkey."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        other_account
      </code>
    </td>
    
    <td>
      A <a href="https://nuxt-backend.dev/docs/build/auth/access/step-up">
        re-authentication
      </a>
      
       signed in as another account (another account's passkey, or a code to another address), or one the server could not tie to the session it confirms: the browser keeps the session it was confirming. Label: "That sign-in belongs to another account. Confirm with this account's passkey or code."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        sign_in_refused
      </code>
    </td>
    
    <td>
      <code>
        canSignIn
      </code>
      
       said no: its message is the one shown, and without one the label "Sign-in is by invitation right now."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ticket_required
      </code>
    </td>
    
    <td>
      A new address checked its sign-in code while the app is in early access or invite only, with no ticket (<a href="https://nuxt-backend.dev/docs/build/growth/launch">
        Launch in phases
      </a>
      
      ): <code>
        phase
      </code>
      
       names the phase, and <code>
        invite
      </code>
      
       how an invite code that came along checked (<code>
        expired
      </code>
      
      , <code>
        used-up
      </code>
      
      , <code>
        revoked
      </code>
      
      , <code>
        unknown
      </code>
      
      ). The code is not used up; <code>
        useLoginFlow
      </code>
      
       moves to its <code>
        waitlisted
      </code>
      
       or <code>
        invite-code
      </code>
      
       step rather than showing an error. Label: "Signing up needs an invite right now."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        consent_required
      </code>
    </td>
    
    <td>
      A function asked <a href="https://nuxt-backend.dev/docs/build/auth/accounts/consents#check-one-in-a-function">
        <code>
          account.requireConsent
        </code>
      </a>
      
       about an account that has not accepted a required consent at its latest version: <code>
        kind
      </code>
      
       names it. <code>
        <ConsentPrompt>
      </code>
      
       asks for it. Label: "Accept the updated terms to continue."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        two_factor_required
      </code>
    </td>
    
    <td>
      An account with an <a href="https://nuxt-backend.dev/docs/build/auth/accounts/security#an-authenticator-app">
        authenticator app
      </a>
      
       checked its sign-in code: the code is used, and no session opens until the app's code (or a backup code) checks. <code>
        useLoginFlow
      </code>
      
       moves to its <code>
        two-factor
      </code>
      
       step rather than showing an error. Label: "Enter the code from your authenticator app to finish signing in."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        presence_user
      </code>
      
       · <code>
        presence_room
      </code>
    </td>
    
    <td>
      A <a href="https://nuxt-backend.dev/docs/build/data/read-write/presence">
        presence
      </a>
      
       heartbeat named an account other than the signed-in one, or the room's <code>
        canJoin
      </code>
      
       said no.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        age_required
      </code>
    </td>
    
    <td>
      A new address checked its sign-in code while the app sets a <a href="https://nuxt-backend.dev/docs/build/auth/accounts/consents#set-a-minimum-age">
        minimum age
      </a>
      
      , and sent no age. The code is not used up; <code>
        useLoginFlow
      </code>
      
       moves to its <code>
        age
      </code>
      
       step rather than showing an error. Label: "Tell us how old you are to continue."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        under_age
      </code>
    </td>
    
    <td>
      The age typed at sign-up is under <code>
        minimumAge
      </code>
      
      , or this browser answered under it in the last day. No account is created. Label: "We can't create an account for you."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlist_closed
      </code>
    </td>
    
    <td>
      A join while the app is not in early access (<a href="https://nuxt-backend.dev/docs/build/growth/launch/waitlist">
        Run a waitlist
      </a>
      
      ): <code>
        phase
      </code>
      
       names the phase it is in. Entries already on the list keep their place.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invitation_refused
      </code>
    </td>
    
    <td>
      <code>
        workspaces.canInvite
      </code>
      
       said no to a workspace invitation: its message is the one shown, and without one the label "This invitation can't be sent."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        customer_taken
      </code>
    </td>
    
    <td>
      With <code>
        billTo: 'user'
      </code>
      
      , the account's email already pays for another account (the provider keeps an individual customer's email unique); or the entity is mapped onto a customer from before 0.2 that another entity is keyed to.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        already_subscribed
      </code>
    </td>
    
    <td>
      A checkout for a plan while the billing entity holds a subscription: switch plans with <code>
        changePlan
      </code>
      
       (<code>
        updateSubscription
      </code>
      
      ), or turn on <code>
        multipleSubscriptions
      </code>
      
      . Also a plan pass claimed into a workspace on a paid plan or on a pass already (<a href="https://nuxt-backend.dev/docs/build/growth/offers/plan-passes#what-the-claim-does">
        Gift a plan as a pass
      </a>
      
      ).
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        not_billing_manager
      </code>
    </td>
    
    <td>
      A checkout, the portal, a plan change, orders or an invoice of a workspace, by a member who is neither its owner nor an admin. See <a href="https://nuxt-backend.dev/docs/build/billing/setup#who-may-buy-for-a-workspace">
        Decide who manages billing
      </a>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        provider_owner_only
      </code>
    </td>
    
    <td>
      The billing portal of a workspace, opened by one of its admins: the server lets them in, but the billing provider lists only the owner as a member who manages the customer for now.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        gift_refused
      </code>
      
       · <code>
        not_recipient
      </code>
      
       · <code>
        no_email
      </code>
    </td>
    
    <td>
      A gift was refused (to the purchaser's own address, before their first paid order, or by <code>
        canGift
      </code>
      
      , whose message is the one shown), the gift is addressed to another email or does not exist, or the session has no verified email.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        gift_refunded
      </code>
    </td>
    
    <td>
      The gift's purchase was refunded before its claim, so there is nothing to receive.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        gift_claimed
      </code>
      
       · <code>
        gift_delivered
      </code>
    </td>
    
    <td>
      A change to a gift its recipient has claimed or started to claim (a notice again, a new address, a cancel), or a new date for a gift already delivered (<a href="https://nuxt-backend.dev/docs/build/growth/offers/gifts#manage-gifts">
        Send, receive and manage gifts
      </a>
      
      ).
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        sole_owner
      </code>
    </td>
    
    <td>
      Deleting an account (<code>
        /delete-user
      </code>
      
      , or an administrator's <code>
        /admin/remove-user
      </code>
      
      ) that is the only owner of a workspace others belong to: another member becomes an owner first, or the others leave (<a href="https://nuxt-backend.dev/docs/build/auth/accounts/data">
        Export and erase account data
      </a>
      
      ). Label: "You're the only owner of a workspace others belong to. Make another member an owner first."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flag_off
      </code>
    </td>
    
    <td>
      <code>
        flags.requireFlag(ctx, key)
      </code>
      
       and the flag is off for the caller: its default, an administrator's override, its targets and its rollout all said no (<a href="https://nuxt-backend.dev/docs/ship/operate/flags">
        Roll out features and pause services
      </a>
      
      ). Label: "This isn't available to you yet."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkey_required
      </code>
    </td>
    
    <td>
      A session opened with a passkey-only account's recovery code, on any route but saving a passkey, reading the session and signing out: the person saves a new passkey before anything else, and no Convex function runs as the account until then (<a href="https://nuxt-backend.dev/docs/build/auth/sign-in#passkey-only-accounts">
        Passkey-only accounts
      </a>
      
      ). Label: "Save a new passkey to finish signing in."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        not_allowed
      </code>
    </td>
    
    <td>
      <code>
        cancelJob
      </code>
      
       by someone who neither started the job, nor owns or administers its workspace, nor administers the app.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        cannot_share
      </code>
    </td>
    
    <td>
      <code>
        enableShareLink
      </code>
      
       for a row the table's <code>
        canShare
      </code>
      
       refuses the caller, or <code>
        revokeShareLink
      </code>
      
       by someone it refuses who did not turn the link on (<a href="https://nuxt-backend.dev/docs/build/data/files/share-links">
        Share by link
      </a>
      
      ). Label: "You can't share this."
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        bot_check
      </code>
    </td>
    
    <td>
      The request or call passed no bot check: a sign-in code request, sign-up or password sign-in that BotID calls a bot, or that reached the deployment without a proof that passes (for its route, its address and that deployment) or a challenge answer the provider accepts, and a <code>
        verifyHuman
      </code>
      
       call without a token that passes (Better Auth's captcha <code>
        VERIFICATION_FAILED
      </code>
      
       reads the same). Label: "We couldn't confirm you're a person. Try again." See <a href="https://nuxt-backend.dev/docs/build/auth/sign-in/bots">
        Turn on bot protection
      </a>
      
      .
    </td>
  </tr>
</tbody>
</table>

Better Auth's own refusals of a sign-in too old for the route, `SESSION_NOT_FRESH` (registering a passkey, its session list) and `SESSION_EXPIRED` (deleting an account), read as `reauthentication_required`, like the package's own.

A `forbidden` the reader maps from Better Auth's own 403 carries Better Auth's error code, lower-cased, as its `reason` (`you_are_not_allowed_to_ban_users`, say), except `BANNED_USER`, which reads as `banned`, and the captcha plugin's `VERIFICATION_FAILED`, which reads as `bot_check`. Those reasons pass through as Better Auth names them: they are not in the table above and not covered by the stability promise. One has a label of its own: `too_many_attempts` (`TOO_MANY_ATTEMPTS`, too many wrong sign-in codes) reads "Too many wrong codes. Ask for a new one."

Better Auth's own refusals never carry its English sentence: a composable keeps the auth client's error as the failure's `cause`, and the person reads the label, in their language. Its 401 reads as `unauthenticated`, except a refused passkey sign-in and a wrong authenticator-app or backup code, which the person fixes in the form. Those 401s, and its 400s for one input, read as `invalid_input` on that field, with a reason where the field alone says too little:

<table>
<thead>
  <tr>
    <th>
      Better Auth code
    </th>
    
    <th>
      <code>
        field
      </code>
    </th>
    
    <th>
      <code>
        reason
      </code>
    </th>
    
    <th>
      Label
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        INVALID_OTP
      </code>
    </td>
    
    <td>
      <code>
        otp
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      That code isn't right. Check it, or ask for a new one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        OTP_EXPIRED
      </code>
    </td>
    
    <td>
      <code>
        otp
      </code>
    </td>
    
    <td>
      <code>
        otp_expired
      </code>
    </td>
    
    <td>
      That code has expired. Ask for a new one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        INVALID_EMAIL
      </code>
    </td>
    
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      Enter a valid email address.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ORGANIZATION_ALREADY_EXISTS
      </code>
      
       · <code>
        ORGANIZATION_SLUG_ALREADY_TAKEN
      </code>
    </td>
    
    <td>
      <code>
        slug
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      That name is taken. Try another one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AUTH_CANCELLED
      </code>
      
       · <code>
        ERROR_CEREMONY_ABORTED
      </code>
    </td>
    
    <td>
      <code>
        passkey
      </code>
    </td>
    
    <td>
      <code>
        passkey_cancelled
      </code>
    </td>
    
    <td>
      The passkey prompt was closed. Try again, or continue with an email code.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        INVALID_CODE
      </code>
    </td>
    
    <td>
      <code>
        twoFactorCode
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      That code isn't right. Check your authenticator app and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        INVALID_BACKUP_CODE
      </code>
    </td>
    
    <td>
      <code>
        twoFactorCode
      </code>
    </td>
    
    <td>
      <code>
        backup_code
      </code>
    </td>
    
    <td>
      That backup code isn't right, or it was used already.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        INVALID_TWO_FACTOR_COOKIE
      </code>
      
       · <code>
        TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE
      </code>
    </td>
    
    <td>
      <code>
        twoFactorCode
      </code>
    </td>
    
    <td>
      <code>
        two_factor_expired
      </code>
    </td>
    
    <td>
      That sign-in took too long. Start again with a new sign-in code.
    </td>
  </tr>
  
  <tr>
    <td>
      Any other passkey code (<code>
        PASSKEY_NOT_FOUND
      </code>
      
      , a WebAuthn <code>
        ERROR_*
      </code>
      
      )
    </td>
    
    <td>
      <code>
        passkey
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      That passkey didn't work. If it's a security key, set a PIN on it and try again, or continue with an email code.
    </td>
  </tr>
</tbody>
</table>

A label for one field or reason is `errors.invalid_input_<field>` or `errors.invalid_input_<reason>`, used over the code's own.

The package's own `invalid_input` refusals:

<table>
<thead>
  <tr>
    <th>
      <code>
        field
      </code>
    </th>
    
    <th>
      <code>
        reason
      </code>
    </th>
    
    <th>
      When
    </th>
    
    <th>
      Label
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      <code>
        no_password
      </code>
    </td>
    
    <td>
      A password-reset code, asked of an app that has no passwords.
    </td>
    
    <td>
      This app signs in with codes and passkeys: there is no password to reset.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        otp
      </code>
    </td>
    
    <td>
      <code>
        other_browser
      </code>
    </td>
    
    <td>
      A sign-in code checked in another browser than the one that asked for it: the request sets an HttpOnly cookie that the check needs (<a href="https://nuxt-backend.dev/docs/build/auth/sign-in#codes-work-only-where-they-were-asked-for">
        Codes work only where they were asked for
      </a>
      
      ).
    </td>
    
    <td>
      This code works only in the browser where you asked for it.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        recoveryCode
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        recover()
      </code>
      
       (<code>
        /sign-in/recovery-code
      </code>
      
      ) with a wrong or used recovery code, or an address that has none: the answers are alike.
    </td>
    
    <td>
      That recovery code isn't right, or it was used already.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        passkeys
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        setPasskeyOnly(true)
      </code>
      
       without a passkey, or removing the last passkey of a passkey-only account.
    </td>
    
    <td>
      A passkey-only account needs a passkey. Add one, or allow sign-in codes again first.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        sessionId
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        revokeSession
      </code>
      
       with an id that is none of the caller's sessions.
    </td>
    
    <td>
      That session has already ended.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        updateProfile
      </code>
      
       with an empty name, or one over 256 characters.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        action
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        useHumanCheck().token(action)
      </code>
      
       with no action name: up to 32 letters, digits, <code>
        _
      </code>
      
       and <code>
        -
      </code>
      
      .
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subject
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        useHumanCheck().token(action, subject)
      </code>
      
       with a subject that is no text, or over 320 characters.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subscriptionId
      </code>
    </td>
    
    <td>
      <code>
        cancel_scheduled
      </code>
    </td>
    
    <td>
      <code>
        cancelSubscription
      </code>
      
       at the period's end on a subscription already set to cancel: the provider takes one cancellation per period.
    </td>
    
    <td>
      This plan is already set to cancel at the end of its period.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subscriptionId
      </code>
    </td>
    
    <td>
      <code>
        no_cancel_scheduled
      </code>
    </td>
    
    <td>
      <code>
        uncancelSubscription
      </code>
      
       on a subscription that is not set to cancel.
    </td>
    
    <td>
      This plan isn't set to cancel, so there is nothing to undo.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subscriptionId
      </code>
    </td>
    
    <td>
      <code>
        no_change_scheduled
      </code>
    </td>
    
    <td>
      <code>
        cancelPendingChange
      </code>
      
       with no plan change scheduled.
    </td>
    
    <td>
      No plan change is scheduled, so there is nothing to undo.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subscriptionId
      </code>
    </td>
    
    <td>
      <code>
        withdrawal_closed
      </code>
    </td>
    
    <td>
      <code>
        withdraw
      </code>
      
       with no purchase of the billing entity inside its 14-day withdrawal period, one withdrawn from already, or with <code>
        setupBilling({ lifecycle: { withdrawal } })
      </code>
      
       off.
    </td>
    
    <td>
      No purchase is inside its withdrawal period any more, so there is nothing to withdraw from.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        kind
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        grantConsent
      </code>
      
      , <code>
        withdrawConsent
      </code>
      
       or <code>
        account.consented
      </code>
      
       with a kind <code>
        setupAccount({ consents })
      </code>
      
       doesn't declare.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        kind
      </code>
    </td>
    
    <td>
      <code>
        required
      </code>
    </td>
    
    <td>
      <code>
        withdrawConsent
      </code>
      
       on a required kind: a person who no longer agrees deletes their account.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        purposes
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        chooseStorage
      </code>
      
       with a purpose that is none of <code>
        preferences
      </code>
      
      , <code>
        replay
      </code>
      
       and <code>
        analytics
      </code>
      
      .
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        age
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      The age typed at sign-up, or <code>
        grantConsent
      </code>
      
       for <code>
        age
      </code>
      
      , is no whole number from 0 to 120.
    </td>
    
    <td>
      Enter your age as a number.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        comment
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        cancelSubscription
      </code>
      
       with a comment over 500 characters.
    </td>
    
    <td>
      That comment is too long. Keep it to 500 characters.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        key
      </code>
    </td>
    
    <td>
      <code>
        too_many_overrides
      </code>
    </td>
    
    <td>
      <code>
        setFlag
      </code>
      
       storing an override for a 501st flag: the component holds 500 at once (<code>
        FLAG_ROWS_MAX
      </code>
      
      ). Remove one, such as an override of a flag the code no longer declares.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        productIds
      </code>
      
       · <code>
        productId
      </code>
    </td>
    
    <td>
      <code>
        retired
      </code>
    </td>
    
    <td>
      A checkout or a plan change to a retired plan's product: its subscribers keep it, but nobody new buys it or switches to it.
    </td>
    
    <td>
      That plan is no longer offered. Pick another one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        productIds
      </code>
      
       · <code>
        productId
      </code>
      
       · <code>
        subscriptionId
      </code>
    </td>
    
    <td>
      <code>
        free_plan
      </code>
    </td>
    
    <td>
      A checkout of the free plan's product, a plan change to it, or a change, cancellation or pause of the free subscription: every billing entity is on it until a paid plan replaces it, and back on it when that one ends.
    </td>
    
    <td>
      The free plan stays until a paid plan replaces it. Choose a plan to upgrade.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        currency
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      A checkout in a currency the catalog prices none of its products in.
    </td>
    
    <td>
      Prices aren't offered in that currency. Pick another one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        confirmation
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        /delete-user
      </code>
      
       (<code>
        useAccount().deleteAccount
      </code>
      
      ) without the account's address typed to confirm it, or with another one.
    </td>
    
    <td>
      Type your email address exactly as it is shown to confirm.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        has_account
      </code>
    </td>
    
    <td>
      <code>
        account.forgetEmail
      </code>
      
       for an address an account holds: delete that account instead.
    </td>
    
    <td>
      This address belongs to an account. Delete the account instead.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        inviteCode
      </code>
    </td>
    
    <td>
      <code>
        invite_expired
      </code>
      
       · <code>
        invite_used_up
      </code>
      
       · <code>
        invite_revoked
      </code>
    </td>
    
    <td>
      <code>
        useLoginFlow().redeemInviteCode()
      </code>
      
       with an invite code that admits nobody; none for an unknown code.
    </td>
    
    <td>
      That invite code has expired. · That invite code has been used up. · That invite code is no longer valid. · That invite code doesn't work. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        message
      </code>
      
       · <code>
        name
      </code>
      
       · <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        required
      </code>
      
       · <code>
        too_short
      </code>
      
       · <code>
        too_long
      </code>
      
       · <code>
        malformed
      </code>
    </td>
    
    <td>
      <code>
        submitContactMessage
      </code>
      
       (<code>
        <ContactForm>
      </code>
      
      ) with a message under 10 or over 2,000 characters, a name over 100, or, signed out, no name, no address or one that is none.
    </td>
    
    <td>
      Fill in this field. · That message is too short. Write at least 10 characters. · That is too long. Keep a message to 2,000 characters and a name to 100. · Enter a valid email address.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        no_thread
      </code>
      
       · <code>
        no_inbox
      </code>
    </td>
    
    <td>
      <code>
        replyToInbox
      </code>
      
       for a message that is no thread of the support inbox (<code>
        no_thread
      </code>
      
      ), or in an app whose <code>
        setupEmail
      </code>
      
       names no support inbox (<code>
        no_inbox
      </code>
      
      ).
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        text
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        replyToInbox
      </code>
      
       with an empty reply, or one over 10,000 characters.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        text
      </code>
      
       · <code>
        storageId
      </code>
    </td>
    
    <td>
      <code>
        empty
      </code>
      
       · <code>
        too_long
      </code>
    </td>
    
    <td>
      <code>
        ai.knowledge
      </code>
      
      's <code>
        add
      </code>
      
       with a document that has no text, from its <code>
        text
      </code>
      
       or its upload, or more than the document limit.
    </td>
    
    <td>
      That document is empty. · That document is too long.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        phase
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        setAccessPhase
      </code>
      
       with a phase the app's <code>
        phases
      </code>
      
       leave out.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        label
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        createInvite
      </code>
      
       (<code>
        access.invites.create
      </code>
      
      ) or <code>
        admitEmails
      </code>
      
       with an empty label, or one over 64 characters.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        maxUses
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        createInvite
      </code>
      
       with uses that are no whole number from 1 to 100,000.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        expiresAt
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        createInvite
      </code>
      
       with an expiry in the past, or an access link with none.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        emails
      </code>
    </td>
    
    <td>
      <code>
        too_many
      </code>
    </td>
    
    <td>
      <code>
        admitEmails
      </code>
      
       (<code>
        access.admit
      </code>
      
      ) with more than 500 addresses.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        used
      </code>
    </td>
    
    <td>
      <code>
        revokeInvite
      </code>
      
       of an invitation by address an account already signed up with: ban the account instead.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        file
      </code>
    </td>
    
    <td>
      <code>
        too_large
      </code>
    </td>
    
    <td>
      <code>
        storage.store
      </code>
      
       or <code>
        storage.claim
      </code>
      
       with a file over <code>
        setupStorage
      </code>
      
      's <code>
        maxSize
      </code>
      
       (<a href="https://nuxt-backend.dev/docs/build/data/files/checked-uploads">
        Accept checked uploads
      </a>
      
      ).
    </td>
    
    <td>
      That file is too large. Pick a smaller one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        images
      </code>
    </td>
    
    <td>
      <code>
        too_large
      </code>
      
       · <code>
        too_small
      </code>
    </td>
    
    <td>
      <code>
        azureContentSafety()
      </code>
      
       given an image over 4 MB or 7,200 px a side, or under 50 px a side: downscale or pad it before the check (<a href="https://nuxt-backend.dev/docs/build/ai/content-safety/providers">
        Choose moderation providers
      </a>
      
      ).
    </td>
    
    <td>
      That file is too large. Pick a smaller one. · That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        file
      </code>
    </td>
    
    <td>
      <code>
        unsupported_type
      </code>
    </td>
    
    <td>
      <code>
        storage.store
      </code>
      
       with bytes whose type, read from the file's signature, <code>
        accept
      </code>
      
       does not list, or an image whose container is broken.
    </td>
    
    <td>
      That type of file isn't accepted. Pick another one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        file
      </code>
    </td>
    
    <td>
      <code>
        upload_gone
      </code>
    </td>
    
    <td>
      <code>
        storage.claim
      </code>
      
       with an id no upload has: never stored in the component's storage, or deleted by the sweep.
    </td>
    
    <td>
      That upload is gone. Upload the file again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        file
      </code>
    </td>
    
    <td>
      <code>
        upload_claimed
      </code>
    </td>
    
    <td>
      <code>
        storage.claim
      </code>
      
       with an upload claimed already.
    </td>
    
    <td>
      That upload was already used. Upload the file again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        file
      </code>
    </td>
    
    <td>
      <code>
        unsupported_type
      </code>
      
       · <code>
        unreadable
      </code>
    </td>
    
    <td>
      <code>
        preparePhoto
      </code>
      
      , in the browser, given a file that is no picture, or a photo this browser can't open (a HEIC outside Safari without <code>
        heic-to
      </code>
      
       installed, or one its decoder hasn't opened within a minute), thrown as a <code>
        PhotoPrepError
      </code>
      
       (<a href="https://nuxt-backend.dev/docs/build/data/files/checked-uploads#prepare-photos-in-the-browser">
        Prepare photos in the browser
      </a>
      
      ).
    </td>
    
    <td>
      That type of file isn't accepted. Pick another one. · This photo won't open here. Try a JPEG or PNG.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        table
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      A share-link function, or <code>
        storage.resolveShareLink
      </code>
      
      's caller, naming a table no <code>
        storage.shareable
      </code>
      
       call marked.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        enableShareLink
      </code>
      
       or <code>
        revokeShareLink
      </code>
      
       with an id no row of the table has.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        cost
      </code>
    </td>
    
    <td>
      <code>
        over_budget
      </code>
    </td>
    
    <td>
      <code>
        jobs.enqueue
      </code>
      
       for a job bigger than every budget of the queue's tiers on sale: <code>
        need
      </code>
      
       is its cost, <code>
        units
      </code>
      
       the owner's budget. A tier on sale that fits it refuses as <code>
        feature_required
      </code>
      
       instead.
    </td>
    
    <td>
      This is bigger than any plan allows in a day. Make it smaller.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        prompt
      </code>
      
       · <code>
        images
      </code>
    </td>
    
    <td>
      <code>
        content_blocked
      </code>
    </td>
    
    <td>
      The safety classifier flagged the content: <code>
        ai.requireSafe
      </code>
      
      , or <code>
        moderate
      </code>
      
       on a metered action, a stream or a job (on <code>
        prompt
      </code>
      
       when there is text, else on <code>
        images
      </code>
      
      ); or a job's step whose model refused the content (a <code>
        content-filter
      </code>
      
       finish). Nothing is charged, and a job fails at once and is refunded.
    </td>
    
    <td>
      This content isn't allowed here. Try something else.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        images
      </code>
    </td>
    
    <td>
      <code>
        too_many
      </code>
      
       · <code>
        upload_gone
      </code>
      
       · <code>
        unsupported_type
      </code>
    </td>
    
    <td>
      <code>
        ai.moderate
      </code>
      
       or <code>
        ai.requireSafe
      </code>
      
       with more than 8 images, an id no file has, or a file that is no image.
    </td>
    
    <td>
      That input isn't valid. Check it and try again. · That upload is gone. Upload the file again. · That type of file isn't accepted. Pick another one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        file
      </code>
    </td>
    
    <td>
      <code>
        removed_copy
      </code>
    </td>
    
    <td>
      <code>
        storage.store
      </code>
      
       with the bytes of an image an administrator removed on an intimate-image request: identical copies are never kept again. A claimed upload of them is deleted by its check.
    </td>
    
    <td>
      This file was removed from the app and can't be uploaded again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subject
      </code>
      
       · <code>
        notice
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        reportContent
      </code>
      
       naming a subject <code>
        reports.describe
      </code>
      
       answers <code>
        null
      </code>
      
       for, <code>
        decideReport
      </code>
      
       hiding one, or <code>
        decideReport
      </code>
      
       and <code>
        flagCrime
      </code>
      
       naming nothing open.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        url
      </code>
      
       · <code>
        details
      </code>
      
       · <code>
        name
      </code>
      
       · <code>
        email
      </code>
      
       · <code>
        signature
      </code>
      
       · <code>
        goodFaith
      </code>
    </td>
    
    <td>
      <code>
        too_long
      </code>
    </td>
    
    <td>
      <code>
        sendNotice
      </code>
      
      , the <code>
        /report
      </code>
      
       form, without what a notice needs: a web link, why, the notifier's name and address (optional for child sexual abuse material), the signature of an intimate-image request, and the good-faith statement; <code>
        too_long
      </code>
      
       past a field's length.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        reason
      </code>
      
       · <code>
        appeal
      </code>
      
       · <code>
        note
      </code>
      
       · <code>
        table
      </code>
      
       · <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        too_long
      </code>
    </td>
    
    <td>
      A decision or an appeal without its reason or text, or one past its length; a subject naming no table of the app.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        token
      </code>
    </td>
    
    <td>
      <code>
        appeal_expired
      </code>
      
       · <code>
        appealed_already
      </code>
    </td>
    
    <td>
      <code>
        appealDecision
      </code>
      
       with a link that names no decision, six months after the decision, or for a decision appealed already.
    </td>
    
    <td>
      That input isn't valid. Check it and try again. · This decision can no longer be appealed. · This decision was appealed already.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        appealId
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        decideAppeal
      </code>
      
       naming no open appeal.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        jobId
      </code>
    </td>
    
    <td>
      <code>
        not_dead_letter
      </code>
    </td>
    
    <td>
      <code>
        retryJob
      </code>
      
       for a job that is not a failed one in the dead letters.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        jobId
      </code>
    </td>
    
    <td>
      <code>
        refund_pending
      </code>
      
       · <code>
        charge_pending
      </code>
    </td>
    
    <td>
      <code>
        retryJob
      </code>
      
       while the failed job's refund is still on its way: retry once it lands. A refund that failed every try lets the retry run on the charge already paid. <code>
        charge_pending
      </code>
      
       while the charge the job began may still land, up to 15 minutes after it ended.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        concurrency
      </code>
      
       · <code>
        tier
      </code>
      
       · <code>
        perOwner
      </code>
      
       · <code>
        dedicated
      </code>
      
       · <code>
        budget
      </code>
      
       · <code>
        model
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        setQueue
      </code>
      
       with a value the queue can't take: a concurrency outside 0 to 20, a tier not in <code>
        backend/jobs.ts
      </code>
      
      , a <code>
        perOwner
      </code>
      
       under 1, <code>
        dedicated
      </code>
      
       on the catch-all tier, a budget on a tier whose code has none, or a model whose <code>
        min
      </code>
      
      , rate and <code>
        max
      </code>
      
       are out of order.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        message
      </code>
      
       · <code>
        link
      </code>
      
       · <code>
        expiresAt
      </code>
      
       · <code>
        topic
      </code>
      
       · <code>
        subject
      </code>
      
       · <code>
        body
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        publishAnnouncement
      </code>
      
       with a notice it cannot show: an empty message or one over 280 characters, a link that is neither a path of the app nor an <code>
        https:
      </code>
      
       URL, an expiry past or over 90 days ahead, a broadcast to the accounts under a topic <code>
        setupEmail
      </code>
      
       does not declare, an empty subject or body.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      <code>
        no_broadcast
      </code>
      
       · <code>
        cancelled
      </code>
    </td>
    
    <td>
      <code>
        previewAnnouncement
      </code>
      
       or <code>
        sendAnnouncement
      </code>
      
       for an announcement without a broadcast, or one whose broadcast was cancelled.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        scheduledAt
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        sendAnnouncement
      </code>
      
       with a time less than a minute from now.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        event
      </code>
    </td>
    
    <td>
      <code>
        billing_event
      </code>
      
       · <code>
        reserved
      </code>
    </td>
    
    <td>
      <code>
        email.automations.track
      </code>
      
       with a billing event (<code>
        billing.*
      </code>
      
      , or the billing provider's own such as <code>
        order.paid
      </code>
      
      ), whose emails the billing provider sends itself; or with a <code>
        lifecycle.
      </code>
      
       or <code>
        resend:
      </code>
      
       name, which the package and the email provider keep for their own.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
      
       · <code>
        userId
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      <code>
        email.automations.track
      </code>
      
       naming no account with an address, and no address.
    </td>
    
    <td>
      That input isn't valid. Check it and try again.
    </td>
  </tr>
</tbody>
</table>

The `not_ready` reasons:

<table>
<thead>
  <tr>
    <th>
      Reason
    </th>
    
    <th>
      When
    </th>
    
    <th>
      Label
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        no_customer
      </code>
    </td>
    
    <td>
      The billing entity has no provider customer yet: the portal, a usage report or a refund needs one, and a first checkout creates it.
    </td>
    
    <td>
      Nothing to show yet — this opens after your first purchase.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        no_catalog
      </code>
    </td>
    
    <td>
      The app sells nothing yet: no catalog products, so a checkout, a gift or a plan change has nothing to sell. Declare plans and packs in <code>
        billing.catalog.ts
      </code>
      
       and run <code>
        npx nuxt-backend billing sync
      </code>
      
      .
    </td>
    
    <td>
      Nothing to buy yet — this app has no plans or packs set up.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        custom_entity
      </code>
    </td>
    
    <td>
      A referral reward goes to the person's own billing entity, which an app's own <code>
        resolveEntity
      </code>
      
       hides from the referral program. Drop <code>
        resolveEntity
      </code>
      
      , or grant the reward in your own code.
    </td>
    
    <td>
      Nothing to show yet.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        not_paid
      </code>
    </td>
    
    <td>
      A gift whose purchase is not paid yet can't be claimed. On Stripe, a plan change made at once whose invoice the customer's bank declined: Stripe holds it as a pending update, so the plan stays as it was until that invoice is paid, and drops it within 23 hours (<a href="https://docs.stripe.com/billing/subscriptions/pending-updates" rel="nofollow">
        Stripe's pending updates
      </a>
      
      ).
    </td>
    
    <td>
      This isn't paid for yet. Nothing changes until it is.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        not_delivered
      </code>
    </td>
    
    <td>
      A gift dated for later can't be claimed or have its notice sent before its date.
    </td>
    
    <td>
      Nothing to show yet.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        not_synced
      </code>
    </td>
    
    <td>
      <code>
        sendAnnouncement
      </code>
      
       before <code>
        npx nuxt-backend email sync
      </code>
      
       made the broadcast's audience at the email provider. Or the credit balance never synced for this entity: no credits have reached it, or a mutation spent with <code>
        allowRefresh: false
      </code>
      
      . <code>
        syncEntitlements
      </code>
      
       or a credit pack changes it.
    </td>
    
    <td>
      Nothing to show yet — no credits have reached this account. Open billing to refresh, or get a credit pack.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        no_postal_address
      </code>
    </td>
    
    <td>
      <code>
        sendAnnouncement
      </code>
      
       while <code>
        setupEmail({ brand: { address } })
      </code>
      
       is not set: every marketing email carries the sender's postal address.
    </td>
    
    <td>
      Nothing to show yet.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        sandbox
      </code>
    </td>
    
    <td>
      <code>
        replayWebhookDelivery
      </code>
      
       or <code>
        liftSuppression
      </code>
      
       on a deployment with <code>
        BACKEND_ENVIRONMENT=sandbox
      </code>
      
      , such as the public playground, where either would reach a provider for real (<a href="https://nuxt-backend.dev/docs/ship/deploy/staging#what-a-demo-refuses">
        What a demo refuses
      </a>
      
      ).
    </td>
    
    <td>
      This app is a demo, so this is turned off here.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        no_budget
      </code>
    </td>
    
    <td>
      A metered call, a stream, a job or a chat reply on a deployment with <code>
        BACKEND_ENVIRONMENT=sandbox
      </code>
      
       whose <code>
        setupAi
      </code>
      
       sets no <code>
        spendLimit
      </code>
      
      : a public demo makes no model call without a daily ceiling (<a href="https://nuxt-backend.dev/docs/build/ai/models#cap-the-daily-spend">
        Cap the daily spend
      </a>
      
      ).
    </td>
    
    <td>
      AI is turned off in this demo for now.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        environment
      </code>
    </td>
    
    <td>
      <code>
        replayWebhookDelivery
      </code>
      
       or <code>
        liftSuppression
      </code>
      
       on a <code>
        preview
      </code>
      
       deployment, or one whose <code>
        BACKEND_ENVIRONMENT
      </code>
      
       is unset or not one of the four. They run on <code>
        production
      </code>
      
       and <code>
        development
      </code>
      
       alone (<a href="https://nuxt-backend.dev/docs/ship/deploy/staging#what-a-demo-refuses">
        What a demo refuses
      </a>
      
      ).
    </td>
    
    <td>
      This is turned off on this deployment.
    </td>
  </tr>
</tbody>
</table>

The `unavailable` reasons, by service:

<table>
<thead>
  <tr>
    <th>
      Service
    </th>
    
    <th>
      Reason
    </th>
    
    <th>
      When
    </th>
    
    <th>
      Retry?
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        not_configured
      </code>
    </td>
    
    <td>
      <code>
        BILLING_ACCESS_TOKEN
      </code>
      
       is not set on the deployment. Label: "This isn't set up on this app yet."
    </td>
    
    <td>
      No
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        not_launched
      </code>
    </td>
    
    <td>
      A checkout, a gift checkout or a switch to a paid plan on a production deployment whose billing is not launched yet: no <code>
        BILLING_ACCESS_TOKEN
      </code>
      
      , or no production catalog (<a href="https://nuxt-backend.dev/docs/build/billing/setup#before-billing-launches">
        Before billing launches
      </a>
      
      ). Refused after the caller's check, before anything reaches the provider. Label: "Plans open soon. Nothing can be bought yet."
    </td>
    
    <td>
      No
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        provider_refused
      </code>
    </td>
    
    <td>
      The billing provider refused the request; the log has <code>
        billing.provider_failed
      </code>
      
      .
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        provider_unsupported
      </code>
    </td>
    
    <td>
      The app sells through Stripe, Dodo or Creem (<code>
        BILLING_PROVIDER
      </code>
      
      ), and the call is one that provider has no API for, or one only Polar billing offers for now: a gift, a catalog discount, usage history, a revenue view, a refund on Creem. The message names the call and what to do instead.
    </td>
    
    <td>
      No
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        refund_refused
      </code>
    </td>
    
    <td>
      Stripe or Dodo declined this refund request: the balance it pays refunds from is short (Dodo <code>
        INSUFFICIENT_WALLET_FUNDS
      </code>
      
      , Stripe <code>
        balance_insufficient
      </code>
      
      ), the payment is past the refund window, it was refunded already, an earlier refund of it is still processing (and may still go through), it is disputed, or a refund of it failed before (Stripe makes no other, and says so in its message alone, so the log names it <code>
        refund_failed_before
      </code>
      
      ). The request refunded nothing more; an earlier refund stands. The caller's <code>
        message
      </code>
      
       is the label; the server error names the provider's code and what to do instead, but for a gift refund that failed at once, which has no code: its error points to the refund on the payment in the provider's dashboard. Label: "The payment provider declined this refund, so this request refunded nothing."
    </td>
    
    <td>
      Once the provider's balance is topped up, for a short balance: the retry is a new request, as each refusal moves the refund on to a new idempotency key. A gift refund that failed at once on Dodo: cancel the gift again once its cause is settled (Stripe takes no new refund of a charge whose refund failed, so there refund the purchaser outside Stripe). Otherwise no
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      <code>
        customer_unknown
      </code>
    </td>
    
    <td>
      The billing entity is mapped onto a customer the provider does not know: <code>
        BILLING_ACCESS_TOKEN
      </code>
      
       moved to another organization since the mapping was made. The log has <code>
        billing.customer_mapping_stale
      </code>
      
      , and <code>
        message
      </code>
      
       says to ask the app's operator.
    </td>
    
    <td>
      No, until the deployment's billing data is reset
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        provider_refused
      </code>
    </td>
    
    <td>
      The email provider refused a call (a segment, a contact, a broadcast, a suppression's lift, a webhook replay); its words are in the error's <code>
        message
      </code>
      
      , for the log.
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        not_configured
      </code>
    </td>
    
    <td>
      A suppression's lift or a webhook replay with no <code>
        EMAIL_API_KEY
      </code>
      
       on the deployment. Label: "This isn't set up on this app yet."
    </td>
    
    <td>
      No
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        suppressed
      </code>
    </td>
    
    <td>
      A sign-in code (or an email change's code) to an address the email provider stopped delivering to, after a hard bounce or a complaint, as the deployment's copy of its suppression list knows it. The same refusal whether or not an account holds the address; <code>
        useLoginFlow
      </code>
      
       shows it as its <code>
        undeliverable
      </code>
      
       step (<a href="https://nuxt-backend.dev/docs/build/email/delivery/suppressions">
        Handle suppressed addresses
      </a>
      
      ). Label: "We can't send email to this address right now. Use another address, or contact us for help."
    </td>
    
    <td>
      No, until an administrator lifts it
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      <code>
        provider_refused
      </code>
    </td>
    
    <td>
      The bot check could not run. Either BotID failed on the app's server, whose own log says why, or the challenge provider could not be reached to verify an answer, and the deployment's log has <code>
        protection.challenge_unavailable
      </code>
      
      .
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      <code>
        test_mode
      </code>
      
       · <code>
        unconfigured
      </code>
    </td>
    
    <td>
      An announcement's broadcast sent from a deployment that is not <code>
        production
      </code>
      
       (<code>
        test_mode
      </code>
      
      ): it would reach every real contact of its segment. Or a code, an invitation or a gift's email would not arrive: the deployment is in test mode and the address is no test address, or it has no email key. The log has <code>
        email.undeliverable
      </code>
      
      . The message says the address can't receive mail here, or that the app can't send email yet.
    </td>
    
    <td>
      No
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      <code>
        not_configured
      </code>
    </td>
    
    <td>
      A model call this deployment cannot make: a <code>
        provider/model
      </code>
      
       id the Convex AI Gateway does not answer, without <code>
        AI_GATEWAY_API_KEY
      </code>
      
       (no stand-in model answers in its place; a test under <code>
        nuxt-backend/test
      </code>
      
       answers from the AI SDK's mock) (refused before anything is reserved when the action names the model or settles from its reported cost), or the AI SDK (<code>
        ai
      </code>
      
      ) is not installed. Also a safety check given images while its classifier reads text only, with <code>
        ai.moderation_images_unchecked
      </code>
      
       in the log. Label: "This isn't set up on this app yet." See <a href="https://nuxt-backend.dev/docs/build/ai/models">
        Choose a model
      </a>
      
      .
    </td>
    
    <td>
      No
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        push
      </code>
    </td>
    
    <td>
      <code>
        not_configured
      </code>
    </td>
    
    <td>
      <code>
        subscribePush
      </code>
      
       on a deployment without its web push key pair (<code>
        PUSH_PUBLIC_KEY
      </code>
      
       and <code>
        PUSH_PRIVATE_KEY
      </code>
      
      , which <code>
        env push
      </code>
      
       generates). <code>
        usePushSubscription
      </code>
      
       reads <code>
        isSupported
      </code>
      
       false there, so its own subscribe never asks. Label: "This isn't set up on this app yet." See <a href="https://nuxt-backend.dev/docs/build/email/notifications/web-push#create-the-keys">
        Send web push notifications
      </a>
      
      .
    </td>
    
    <td>
      No
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        referrals
      </code>
    </td>
    
    <td>
      <code>
        code_space
      </code>
    </td>
    
    <td>
      A share code could not be made: five draws in a row collided with codes already taken, which a 40-bit code almost never does. Retry.
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      <code>
        provider_refused
      </code>
    </td>
    
    <td>
      Every model call a run made failed (a bad or expired key, no gateway funds, the provider's own limit or outage) though the handler returned, as one reading <code>
        streamText
      </code>
      
      's text stream does; the run is released and the log has <code>
        ai.model_failed
      </code>
      
      . The safety classifier answering no verdict refuses the content as unchecked the same way, with <code>
        ai.moderation_unreadable
      </code>
      
       in the log, and so does its call failing or giving no answer within 30 seconds, with <code>
        ai.moderation_failed
      </code>
      
      .
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        signups
      </code>
    </td>
    
    <td>
      <code>
        signups_paused
      </code>
    </td>
    
    <td>
      The <code>
        pause_signups
      </code>
      
       <a href="https://nuxt-backend.dev/docs/ship/operate/flags#kill-switches">
        kill switch
      </a>
      
       is on: a sign-in code for an address with no account, or any route that would create an account (an invitation's and an administrator's included), is refused before anything is sent or written. Existing accounts sign in as before. Label: "New sign-ups are paused for now. Try again later."
    </td>
    
    <td>
      Once an administrator turns it off
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        checkout
      </code>
    </td>
    
    <td>
      <code>
        checkout_paused
      </code>
    </td>
    
    <td>
      The <code>
        pause_checkout
      </code>
      
       kill switch is on: a checkout, a plan switch or a gift purchase is refused, after the caller's check and before anything reaches the provider. Label: "Purchases are paused for now. Try again later."
    </td>
    
    <td>
      Once an administrator turns it off
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      <code>
        stalled
      </code>
      
       · <code>
        job_failed
      </code>
    </td>
    
    <td>
      A queued job failed: it showed no sign of life for its <code>
        stallAfter
      </code>
      
      , or its own code threw an error that is no catalog one. It is refunded and lands in the dead letters (<a href="https://nuxt-backend.dev/docs/build/ai/jobs#what-happens-to-a-job">
        What happens to a job
      </a>
      
      ). Labels: "This job stopped responding. Your credits were refunded." and "This job failed. Your credits were refunded."
    </td>
    
    <td>
      Once retried
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      <code>
        ai_paused
      </code>
    </td>
    
    <td>
      The <code>
        pause_ai
      </code>
      
       kill switch is on: a metered call or stream is refused before the model, the limits or the credits count anything. Label: "AI features are paused for now. Try again later."
    </td>
    
    <td>
      Once an administrator turns it off
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        backend
      </code>
    </td>
    
    <td>
      <code>
        unexpected
      </code>
    </td>
    
    <td>
      Never thrown: a composable's <code>
        error
      </code>
      
       reads a failure that carries no code this way (a function that crashed, which production words as "Server Error", or an app's own <code>
        ConvexError
      </code>
      
      ). It says nothing about whether a service is down. Its <code>
        message
      </code>
      
       is the app's own sentence when it wrote one, else the label "Something went wrong." See <a href="https://nuxt-backend.dev/docs/reference/nuxt/conventions">
        Composable conventions
      </a>
      
      .
    </td>
    
    <td>
      Maybe
    </td>
  </tr>
</tbody>
</table>

A reason with no label of its own reads its service's, `errors.unavailable_<service>`, before the code's: `provider_refused` from billing reads "Billing isn't available right now. Try again shortly." The package words `ai`, `billing`, `checkout`, `email`, `protection`, `push`, `referrals` and `signups`; set `errors.unavailable_<service>` in app config or a locale to word a service of your own, or one of these your way.

A `rate_limited` from a package limit names it in `limit`: `emailOtp`, `emailOtpGlobal`, `emailOtpAttempt`, `emailChange`, `billingSync`, `ai`, `aiBudget`, `aiGlobal`, `admin`, `invitation`, `invitationGlobal`, `workspaceCreate`, `accountDelete`, `passkeySignIn`, `passkeySignInGlobal`, `signUpOtpGlobal`, `inviteCheck`, `inviteCheckGlobal`, `waitlistJoin`, `waitlistJoinGlobal`, `contact`, `contactGlobal`, `inboundMail` and `inboundMailGlobal` (inbound mail past these is dropped and logged as `email.inbound_rejected`, never refused to a caller), `report`, `reportGlobal`, `write` and `upload` (see `DEFAULT_LIMITS` in `nuxt-backend/rate-limit`), `jobBudget` (a job queue tier's budget, kept by the queue itself), and `discountCode`: the package's own count of discount codes the provider refused at checkout, ten per billing entity in a fixed one-hour window, kept whether or not the app passes a rate limiter. A code in flight counts until the provider answers, so parallel checkouts can't try more between them. And `gifts`: the gifts one purchaser bought in the `setupBilling({ giftLimit })` window, ten in thirty days by default. And `accountExport`: an account's own count of its data exports, three a day, kept by the component. A limit of your own, enforced with `throws: true`, reads the same way.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
