A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
docs(http-api): rewrite the errors page as short tables
Hampusa7ba8b411d4f
diff --git a/fluxer_docs/src/content/docs/admin-api/index.mdx b/fluxer_docs/src/content/docs/admin-api/index.mdxindex f59fcb033..41052da84 100644--- a/fluxer_docs/src/content/docs/admin-api/index.mdx+++ b/fluxer_docs/src/content/docs/admin-api/index.mdx@@ -455,7 +455,7 @@ An Admin failure uses the same envelope as the [HTTP API error response](/http-a| Field | Type | Description || --- | --- | --- |-| code | string | The stable machine-readable [API error code](/http-api/errors/#api-error-code-registry) |+| code | string | The stable machine-readable [API error code](/http-api/errors/#api-error-codes) || message<sup>1</sup> | string | The human-readable description of this failure || errors?<sup>2</sup> | array[[validation error](/http-api/#validation-error-object) object] | The request fields that failed validation |diff --git a/fluxer_docs/src/content/docs/admin-api/voice.mdx b/fluxer_docs/src/content/docs/admin-api/voice.mdxindex 393623343..0e6575a44 100644--- a/fluxer_docs/src/content/docs/admin-api/voice.mdx+++ b/fluxer_docs/src/content/docs/admin-api/voice.mdx@@ -205,12 +205,6 @@ The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-objeReturns one [Admin voice region](#admin-voice-region-object) object. Requires `voice:region:list`.-### Path parameters--| Field | Type | Description |-| --- | --- | --- |-| region_id | string | The ID of the region (1-64 characters) |-### Query parameters| Field | Type | Description |@@ -304,8 +298,6 @@ Applies a partial update to a region and returns the updated record. Requires `v### JSON body-Every field is optional and an omitted field is left unchanged. An absent, empty, or whitespace-only body is read as an empty object, which validates and updates nothing but `updated_at`. A body that does not parse as JSON returns 400 `INVALID_FORM_BODY` with one element at path `body` and code `INVALID_FORMAT`, as [Errors](/http-api/errors/#validation-failure-codes) describes.-| Field | Type | Description || --- | --- | --- || name? | string | The name shown for the region in a client (1-100 characters) |@@ -426,13 +418,6 @@ The operation records one [Admin audit entry](/admin-api/#admin-audit-entry-objeReturns one [Admin voice server](#admin-voice-server-object) object. Requires `voice:server:list`.-### Path parameters--| Field | Type | Description |-| --- | --- | --- |-| region_id | string | The ID of the region the server belongs to (1-64 characters) |-| server_id | string | The ID of the server (1-64 characters) |-### Response body| Field | Type | Description |@@ -533,8 +518,6 @@ Applies a partial update to a voice server and returns the updated record. Requi### JSON body-Every field is optional and an omitted field is left unchanged. An absent, empty, or whitespace-only body is read as an empty object, which validates and updates nothing but `updated_at`. A body that does not parse as JSON returns 400 `INVALID_FORM_BODY` with one element at path `body` and code `INVALID_FORMAT`, as [Errors](/http-api/errors/#validation-failure-codes) describes.-| Field | Type | Description || --- | --- | --- || endpoint? | string | The LiveKit signalling URL the client opens its media connection to, which has to parse as a URL |diff --git a/fluxer_docs/src/content/docs/http-api/authentication.mdx b/fluxer_docs/src/content/docs/http-api/authentication.mdxindex 1508948eb..9f10a24b8 100644--- a/fluxer_docs/src/content/docs/http-api/authentication.mdx+++ b/fluxer_docs/src/content/docs/http-api/authentication.mdx@@ -127,6 +127,40 @@ The ID of a registration that an administrator has yet to approve. Registration| registration_pending_approval | boolean | Always `true` || user_id | snowflake | The registered account ID awaiting approval |+## Network block response++A request from a blocked network returns 403 `GLOBAL_IP_BANNED` or `GLOBAL_IP_TEMPORARILY_BANNED`. The [error response](/http-api/#error-response) has these extra fields.++- `ip_address` is the normalised client address.+- `appeal_email` is always `null` on a self-hosted instance, and `message` names no address.+- `appeals_supported` is always `false` on a self-hosted instance.+- `ban_kind` is `permanent` or `temporary_24h`. `temporary_24h` covers every ban that records an expiry, whatever its length.+- `expires_at` is an ISO 8601 timestamp when the ban records an expiry, and `null` otherwise, including on every permanent ban.+- `reason` is the rule behind the block, as `title` and `url`, or `null`. It is present only when an account decision placed the block and its rule is one Fluxer names on this screen, such as spam or service abuse. Every other block, including a decision whose rule is withheld, returns a response identical to a plain block of the same kind, so `null` says nothing about why the network was blocked. `url` is `null` when the instance has no policy page for the rule.+- `product_name` is the instance name the server uses in `message`. On a self-hosted instance with no name, or one still named Fluxer, it is the web app host name.++`message` starts with the block and its end date. It then tells someone on a shared network, such as a school, a workplace, public Wi-Fi, a mobile carrier or a VPN, that the block may have nothing to do with them and that switching networks is the quickest fix. `GET /.well-known/fluxer` is never blocked, so a client can still discover the instance and show this screen.++## Enforcement notice object++`ACCOUNT_SUSPENDED_TEMPORARILY` and `ACCOUNT_SUSPENDED_PERMANENTLY` have `notice`, the enforcement notice for the account, in the request locale. It is `null` only for an account its holder deleted.++- `decision_id` is the decision reference, or `null` for a restriction from before decisions.+- `kind` is what the decision did, `suspension` or `closure` on these codes.+- `permanent` is `true` for a suspension with no end date.+- `issued_at`, `ends_at` and `deletion_at` are ISO 8601 timestamps or `null`.+- `summary` is one sentence saying what happened, and `effects` lists what the decision means for the holder.+- `rule` is the rule broken, as `title` and `url`, or `null`.+- `facts` is the finding first, then where and when it happened.+- `statement` is a note from the team, or `null`.+- `how_we_decided` lists how the case reached the team and who decided it.+- `appeal` is `email`, `deadline` and `account_has_email`, or `null` on an instance with no appeal route. `deadline` is already formatted for the reader.+- `redress` lists other ways to challenge the decision.++A line in `effects`, `facts` or `redress` can hold a link written as a Markdown link, `[text](url)`. A client shows the text as a link to the address.++An account with no email address receives its notice here. The first sign-in that shows it records it as received, and the appeal deadline counts from then.+## Partial user objectEvery authenticated result on this page embeds the public account representation. The [partial user object](/http-api/users/#partial-user-object) on the Users resource defines it, together with its [reply mention preferences](/http-api/users/#reply-mention-preferences).@@ -911,14 +945,14 @@ When the instance has disabled new-IP authorisation or sends no email, Fluxer auAccount policy can return 403 `REGISTRATION_PENDING_APPROVAL`, 403 `REGISTRATION_REJECTED`, 403 `ACCOUNT_SUSPENDED_TEMPORARILY`, or 403 `ACCOUNT_SUSPENDED_PERMANENTLY`. A bot account returns 403 `BOT_USER_AUTH_ENDPOINT_ACCESS_DENIED`.-A suspended or closed account gets its 403 after the last factor. Without a second factor that is the password, so login returns it. With a second factor, login returns the MFA ticket and the second factor returns the 403. Both suspension codes have the account's [enforcement notice](/http-api/errors/#supplementary-members). A suspension with no end date and a closed account return `ACCOUNT_SUSPENDED_PERMANENTLY`, and a suspension with an end date returns `ACCOUNT_SUSPENDED_TEMPORARILY`. An expired temporary suspension is cleared at the same point.+A suspended or closed account gets its 403 after the last factor. Without a second factor that is the password, so login returns it. With a second factor, login returns the MFA ticket and the second factor returns the 403. Both suspension codes have the account's [enforcement notice](#enforcement-notice-object). A suspension with no end date and a closed account return `ACCOUNT_SUSPENDED_PERMANENTLY`, and a suspension with an end date returns `ACCOUNT_SUSPENDED_TEMPORARILY`. An expired temporary suspension is cleared at the same point.:::note[Signing in reactivates the account]On an account the user had disabled, signing in clears the disabled state. It also cancels a self-scheduled deletion if erasure has not started. Both happen when the session is created, after any second factor, without a separate confirmation step. Once erasure starts, login returns `ACCOUNT_SUSPENDED_PERMANENTLY`.::::::note[Signing in from a blocked network]-A [blocked network](/http-api/errors/#supplementary-members) can still reach this operation, the second factor operations, passkey sign-in and SSO, so the holder of a suspended or closed account sees its notice. Every other outcome returns the same `GLOBAL_IP_BANNED` or `GLOBAL_IP_TEMPORARILY_BANNED` body any other request from that network gets. That covers an unknown account, a wrong password, and an account that is not suspended or closed, with or without a second factor. No session, MFA ticket or IP authorisation message is created, and SSO provisions no new account.+A [blocked network](#network-block-response) can still reach this operation, the second factor operations, passkey sign-in and SSO, so the holder of a suspended or closed account sees its notice. Every other outcome returns the same `GLOBAL_IP_BANNED` or `GLOBAL_IP_TEMPORARILY_BANNED` body any other request from that network gets. That covers an unknown account, a wrong password, and an account that is not suspended or closed, with or without a second factor. No session, MFA ticket or IP authorisation message is created, and SSO provisions no new account.:::### Responsediff --git a/fluxer_docs/src/content/docs/http-api/billing.mdx b/fluxer_docs/src/content/docs/http-api/billing.mdxindex a10a70c35..a3d13bcde 100644--- a/fluxer_docs/src/content/docs/http-api/billing.mdx+++ b/fluxer_docs/src/content/docs/http-api/billing.mdx@@ -83,6 +83,7 @@ Creates a recurring premium checkout session and returns a [redirect URL](#redir- A gift price, a price outside the resolved country catalogue, and an omitted country code for a price that requires one all return 400 `STRIPE_INVALID_PRODUCT_CONFIGURATION`.- An unclaimed account returns 400 `UNCLAIMED_ACCOUNT_CANNOT_MAKE_PURCHASES`.- An unverified email address returns 403 `PURCHASE_EMAIL_VERIFICATION_REQUIRED`.+- A verified account with no email address, such as any account on a `username` instance, returns 403 `PURCHASE_RECEIPT_EMAIL_REQUIRED`.- The purchase-disabled premium flag returns 403 `PREMIUM_PURCHASE_BLOCKED` with the reason `purchase_disabled`.- An open payment dispute the account made returns 403 `PREMIUM_PURCHASE_BLOCKED` with the reason `payment_dispute_open`, for a subscription and a gift alike.- A lifetime premium account cannot buy a recurring subscription and returns 403 `PREMIUM_PURCHASE_BLOCKED` with the reason `lifetime`.@@ -147,6 +148,7 @@ Creates a one-off premium gift checkout session and returns a [redirect URL](#re### Limitations- The claimed account, verified email, purchase flag and open payment dispute requirements of [create subscription checkout](#create-subscription-checkout) apply unchanged, with the same codes.+- A verified account with no email address can still buy a gift, so `PURCHASE_RECEIPT_EMAIL_REQUIRED` does not apply.- The submitted price is a registered gift price for the resolved country catalogue, so a recurring price returns 400 `STRIPE_INVALID_PRODUCT_CONFIGURATION`.Neither the lifetime block nor the existing subscription block applies here, so a lifetime premium account can buy gifts.diff --git a/fluxer_docs/src/content/docs/http-api/errors.md b/fluxer_docs/src/content/docs/http-api/errors.mdindex f14e757be..722596ad7 100644--- a/fluxer_docs/src/content/docs/http-api/errors.md+++ b/fluxer_docs/src/content/docs/http-api/errors.md@@ -1,70 +1,44 @@---# SPDX-License-Identifier: AGPL-3.0-or-latertitle: Errors-description: The error envelope, the status fallback mapping, and both code registries.+description: Error responses, status codes and every error code.----A failed request returns a JSON [error response](/http-api/#error-response). It has a stable `code` a client matches on and a localised `message` for a person to read. Every HTTP API and Admin API failure uses this shape. An OAuth2 protocol failure is the one exception.+When a request fails, the response has a non-2xx status and a JSON body with `code` and `message`. Match on `code`, which never changes. `message` is translated text for people, and you shouldn't parse it.-:::caution[Match on `code` alone]-The `message` field is rendered from a template, is translated per request, and can change wording without notice. An HTTP status is not enough on its own, because many distinct codes share one status.-:::+## Error response-## Selecting the error code--An error response always has `code` and `message`. A failure with more to report adds its own members beside those two, at the top level of the response. A rate limit denial adds `global` and `retry_after`, a missing scope adds `required_scope`, and a validation failure adds `errors`.--:::note[OAuth2 endpoints use a different envelope]-An OAuth2 protocol failure raised by the [OAuth2 resource](/http-api/oauth2/) answers with the RFC 6749 shape. That body is `error` and `error_description` and nothing else, so its values appear in no registry here.-:::--## Supplementary members--The error code determines which supplementary members a failure has, and most codes have none. A client reads only the members documented for the code it matched. `errors` is the list of field violations. `retry_after` is the delay before another attempt is admitted. `global` is `true` on a global rate limit denial and `false` on a route one. `required_scope` is the OAuth2 scope the request is missing. `has_mfa` and `methods` are the [sudo mode](/http-api/users/mfa/#sudo-mode) proofs an account can supply. `captcha_provider` and `altcha_challenge` are the challenge described in [CAPTCHA handling](/topics/captcha/). `step_index` is the zero-based index of the first [report flow step](/http-api/reports/#report-flow-step-object) that does not fit the current flow, on `INVALID_REPORT_FLOW_ANSWERS`.--`GLOBAL_IP_BANNED` and `GLOBAL_IP_TEMPORARILY_BANNED` have their own members:--- `ip_address` is the normalised client address.-- `appeal_email` is always `null` on a self-hosted instance, and `message` names no address.-- `appeals_supported` is always `false` on a self-hosted instance.-- `ban_kind` is `permanent` or `temporary_24h`. `temporary_24h` covers every ban that records an expiry, whatever its length.-- `expires_at` is an ISO 8601 timestamp when the ban records an expiry, and `null` otherwise, including on every permanent ban.-- `reason` is the rule behind the block, as `title` and `url`, or `null`. It is present only when an account decision placed the block and its rule is one Fluxer names on this screen, such as spam or service abuse. Every other block, including a decision whose rule is withheld, returns a response identical to a plain block of the same kind, so `null` says nothing about why the network was blocked. `url` is `null` when the instance has no policy page for the rule.-- `product_name` is the instance name the server uses in `message`. On a self-hosted instance with no name, or one still named Fluxer, it is the web app host name.--`message` starts with the block and its end date, then tells someone on a shared network, such as a school, a workplace, public Wi-Fi, a mobile carrier or a VPN, that the block may have nothing to do with them and that switching networks is the quickest fix. `GET /.well-known/fluxer` is never blocked, so a client can still discover the instance and show this screen.--A blocked network still reaches the sign-in operations: [log in with a password](/http-api/authentication/#log-in-with-a-password), the second factor operations, passkey sign-in and SSO. There the holder of a suspended or closed account gets its suspension error with the notice, and every other outcome gets this same block.--`ACCOUNT_SUSPENDED_TEMPORARILY` and `ACCOUNT_SUSPENDED_PERMANENTLY` have `notice`, the enforcement notice for the account, in the request locale. It is `null` only for an account its holder deleted. Its members are:--- `decision_id` is the decision reference, or `null` for a restriction from before decisions.-- `kind` is what the decision did, `suspension` or `closure` on these codes.-- `permanent` is `true` for a suspension with no end date.-- `issued_at`, `ends_at` and `deletion_at` are ISO 8601 timestamps or `null`.-- `summary` is one sentence saying what happened, and `effects` lists what the decision means for the holder.-- `rule` is the rule broken, as `title` and `url`, or `null`.-- `facts` is the finding first, then where and when it happened.-- `statement` is a note from the team, or `null`.-- `how_we_decided` lists how the case reached the team and who decided it.-- `appeal` is `email`, `deadline` and `account_has_email`, or `null` on an instance with no appeal route. `deadline` is already formatted for the reader.-- `redress` lists other ways to challenge the decision.+```json+{+ "code": "MISSING_PERMISSIONS",+ "message": "You don't have the permissions required to perform this action."+}+```-A line in `effects`, `facts` or `redress` can hold a link written as a Markdown link, `[text](url)`. A client shows the text as a link to the address.+Some codes add more top-level fields, and a request that fails a field check also has an `errors` array. Ignore any field you don't recognize. Every response has an `X-Request-ID` header, and you should include it when you report a problem.-An account with no email address receives its notice here. The first sign-in that shows it records it as received, and the appeal deadline counts from then.+`message` uses the account's locale or the `Accept-Language` header and falls back to English, as described in [Locales](/topics/locales/).-## Validation failure codes+[OAuth2](/http-api/oauth2/) protocol endpoints return the RFC 6749 `error` and `error_description` fields instead.-Fluxer answers a field-level failure with 400 and a top-level `errors` array. Each element identifies one failed input field. The [validation error object](/http-api/#validation-error-object) documents the element shape.+## Status codes-Invalid JSON bodies, form bodies, query strings and path parameters return `INVALID_FORM_BODY`. Each entry in `errors` identifies a field and its message. An entry can also include a stable `code` from the [validation error code registry](#validation-error-code-registry). Entries without a code have an English message.+| Status | Meaning | What to do |+| --- | --- | --- |+| 400 | The request is invalid or failed a check | Fix the request before you send it again. On `SLOWMODE_RATE_LIMITED`, wait the seconds in `retry_after` |+| 401 | The token is missing, invalid or expired, or a passkey sign-in failed | Get a new token and stop using the rejected one, unless `code` is `PASSKEY_AUTHENTICATION_FAILED` |+| 403 | The account, token or network isn't allowed to make this request | Check `code` and your permissions, and don't send the same request again |+| 404 | The resource or route doesn't exist, or you can't see it | Check the ID and the route |+| 409 | The request conflicts with the current state | Fetch the current state and change the request to match it |+| 423 | Another request holds a lock on the resource | Wait the number of seconds in the `Retry-After` header and try again |+| 429 | You're rate limited, or another request is changing the same resource (`RESOURCE_LOCKED`) | Wait the number of seconds in `retry_after`, which can be a fraction, and try again. See [Rate limits](/topics/rate-limits/) |+| 500, 502, 503, 504 | Something failed on the instance | Wait the number of seconds in `Retry-After` if it's sent, or use exponential backoff. Give up after a few tries |-[Modify current user settings](/http-api/users/settings/#modify-current-user-settings) is the one operation that answers such a failure with the top-level code `VALIDATION_ERROR` instead of `INVALID_FORM_BODY`. Its trusted domain, age restriction, and synced preferences decisions each report one element with a registry `code` and a fixed English `message`.+If your IP address is blocked for a while because of abusive traffic, requests return 403 `GLOBAL_IP_TEMPORARILY_BANNED`, and `expires_at` says when the block ends.-The `path` of an element is the dot-joined position of the failed value, so a nested field appears as `embeds.0.title`. A failure with no field position uses the literal path `root`. Fluxer produces at most one element for each distinct pair of `path` and `code`.+## Validation errors-### Example+When a field fails a check, the request returns 400 `INVALID_FORM_BODY` with an `errors` array. Each element is one failed check, with `path`, `message` and usually `code`.```json{@@ -73,2396 +47,618 @@ The `path` of an element is the dot-joined position of the failed value, so a ne"errors": [{"path": "embeds.0.title",- "code": "CONTENT_EXCEEDS_MAX_LENGTH",- "message": "Text must not exceed 256 characters."+ "code": "STRING_LENGTH_INVALID",+ "message": "String length must be between 0 and 256 characters."}]}```-:::note[An empty body reports the missing fields]-An empty or whitespace-only body becomes `{}`, so the response reports the fields the schema then finds missing. A body that does not parse as JSON returns 400 `INVALID_FORM_BODY` with one element at path `body` and code `INVALID_FORMAT`.-:::--Fluxer normalises empty values on all targets before validation runs. An empty string becomes `null` wherever it appears, including inside an array element. A nested object becomes `null` when it holds no members. It also becomes `null` when every one of its members is `null` after Fluxer has applied the same rule to each of them. The top-level object itself is never replaced, so a request that sends nothing still reaches the schema as an object and fails on the fields the schema requires.--:::caution[An enumerated validation failure answers 400 alone]-A validation failure whose elements have enumerated codes answers 400 with its elements in `errors`. Its top-level code is `INVALID_FORM_BODY` everywhere except [Modify current user settings](/http-api/users/settings/#modify-current-user-settings). Any other status, retry guidance, or response header from the original failure is dropped.-:::--### Default schema failure codes--A constraint in a route's request schema can name its own [validation code](#validation-error-code-registry). When it names none, Fluxer maps the failure to one of the codes below by the kind of constraint that failed.--| Constraint | Code | Description |-| --- | --- | --- |-| String longer than its maximum | CONTENT_EXCEEDS_MAX_LENGTH<sup>1</sup> | A string value exceeded the maximum length the schema declares |-| Email format | INVALID_EMAIL_ADDRESS | A value declared as an email address did not parse as one |-| UUID format | INVALID_SNOWFLAKE | A value declared as a UUID did not parse as one |-| Any other constraint | INVALID_FORMAT<sup>2</sup> | Every constraint kind not listed above |--<sup>1</sup> A string shorter than its minimum reports `INVALID_FORMAT`, and so does a length bound on anything other than a string--<sup>2</sup> Covers a type, union, enumerated value, unknown key, minimum length, numeric or date bound, multiple, key, element, or custom constraint, a constraint kind the mapping does not recognise, and a constraint that names a code outside the registry--## HTTP status fallback codes--A failure that has an HTTP status and no recognised Fluxer error code takes the fallback `code` its status selects below. Where an operation or one of the registries below names the error, Fluxer keeps that more specific code. An unclassified 401, 413, 422, or 429 falls back to `GENERAL_ERROR`.--Fluxer answers an unrecognised failure with 500 `INTERNAL_SERVER_ERROR` and a generic message that names no detail. A failure that has a registered API code but no status returns 400, except `GENERAL_ERROR`, which returns 500.--| Status | Code | Description |-| --- | --- | --- |-| 400 | BAD_REQUEST | The request was malformed or failed a precondition |-| 403 | FORBIDDEN | The caller lacks permission for the operation |-| 404 | NOT_FOUND<sup>1</sup> | The target resource does not exist or is not visible |-| 405 | METHOD_NOT_ALLOWED | The HTTP method is not accepted on the route |-| 409 | CONFLICT | The request conflicts with the current state of the resource |-| 410 | GONE | The resource is permanently unavailable |-| 500 | INTERNAL_SERVER_ERROR<sup>2</sup> | An unexpected internal failure occurred |-| 501 | NOT_IMPLEMENTED | The requested capability is not implemented |-| 502 | BAD_GATEWAY | An upstream dependency returned an invalid response |-| 503 | SERVICE_UNAVAILABLE | The service is temporarily unable to handle the request |-| 504 | GATEWAY_TIMEOUT | An upstream dependency did not respond in time |-| default<sup>3</sup> | GENERAL_ERROR | Any status without a specific mapping |--<sup>1</sup> Also the code a request that matches no route receives, so an unrouted path and an unreadable resource are indistinguishable from the body alone. A route with a route header on [Threads](/http-api/threads/), [Thread members](/http-api/thread-members/) or [Forums](/http-api/forums/) returns it to a user request without the [`channel_threads` client capability](/http-api/threads/#client-capability)--<sup>2</sup> Also the code an unrecognised failure receives, with the generic localised message--<sup>3</sup> A failure that lands on this row keeps its own status--## Client errors as an abuse signal--Repeated invalid requests or credentials can trigger a temporary IP ban. Stop using a rejected credential. Change a rejected request before sending it again, and after a 429 wait `retry_after` before the next attempt.--:::caution[An automatic ban answers every request for 24 hours]-A temporary ban lasts 24 hours by default. Requests from the banned address return 403 `GLOBAL_IP_TEMPORARILY_BANNED`. Use `expires_at` from the response when available.-:::--## API error code registry--These codes appear in the top-level `code` field of an error response, sent as the exact JSON string shown. The registry is closed. Each entry states the leading sentence of the English source message, without its final full stop. Those messages call a [guild](/http-api/guilds/) a community. When a message picks its wording from a value in the error, such as `need` or `reason`, the entry states the wording of its `other` case and then describes the rest.--The [OpenAPI document](/http-api/instance/#get-openapi-document) and the Admin API specification publish the same list as the `APIErrorCode` schema. The `code` member of their error schemas stays a plain string that refers to it.--:::note[The rendered `message` fills in the braced values]-A description containing a value in braces is an ICU MessageFormat template. `You've reached the maximum of {count, plural, one {# emoji} other {# emojis}}` renders as a complete sentence with the applicable limit.-:::--:::note[A rendered `message` can run longer than the registry entry]-Several source messages append a further recovery sentence with a template value such as a maximum size, a format list, or a retry delay.-:::--### `ACCESS_DENIED`--You don't have access to this resource or feature--### `ACCOUNT_ALREADY_CLAIMED`--This account is already set up to sign in from other devices. Only an [unclaimed](/http-api/users/#account-tiers) account can be claimed--### `ACCOUNT_BELOW_MINIMUM_AGE`--You aren't old enough to have an account here--### `ACCOUNT_IDENTITY_LOCKED`--The sign-in method is already set and can't be changed--### `ACCOUNT_LIMITED`--Messaging is paused on your account--### `ACCOUNT_SUSPENDED_PERMANENTLY`--This account has been permanently suspended--### `ACCOUNT_SUSPENDED_TEMPORARILY`--This account has been temporarily suspended--### `ACCOUNT_TOO_NEW_FOR_GUILD`--Your account is too new to send messages in this community--### `ACCOUNT_VERIFICATION_REQUIRED`--Claim your account to do this. The message says which step is missing, based on `need`, and which action was refused, based on `action`. `add_email` asks for an email, `confirm_email` asks for the email to be confirmed and `password` asks for a password. For `ownership_transfer` the message is about the member who would become the owner. The body has `action`, `tier` and `need`, as described under [account tiers](/http-api/users/#account-tiers)--### `ACLS_MUST_BE_NON_EMPTY`--ACLs must be non-empty--### `ADMIN_API_KEY_NOT_FOUND`--Admin API key wasn't found--### `ALREADY_FRIENDS`--You're already friends with this user--### `ANNOUNCEMENT_CHANNEL_REQUIRED`--This action is only available in announcement channels--### `BAD_GATEWAY`--Bad gateway--### `BAD_REQUEST`--Bad request--### `BLUESKY_OAUTH_AUTHORIZATION_FAILED`--We couldn't resolve that Bluesky handle--### `BLUESKY_OAUTH_NOT_ENABLED`--Bluesky connections are not enabled on this instance--### `BOTS_CANNOT_CREATE_GUILDS`--Bots can't create communities--### `BOTS_CANNOT_SEND_FRIEND_REQUESTS`--Bots can't send friend requests--### `BOT_ALREADY_IN_GUILD`--This bot is already in the community--### `BOT_IS_PRIVATE`--This bot is private--### `BOT_USER_AUTH_ENDPOINT_ACCESS_DENIED`--Bot users can't use auth endpoints--### `BOT_USER_AUTH_SESSION_CREATION_DENIED`--Bot users can't create auth sessions--### `BOT_USER_GENERATION_FAILED`--Bot user generation failed--### `BOT_USER_NOT_FOUND`--Bot user wasn't found--### `CALL_ALREADY_EXISTS`--A call is already in progress in this channel--### `CANNOT_BLOCK_SYSTEM_USER`--You can't block the system user--### `CANNOT_EDIT_OTHER_USER_MESSAGE`--You can't edit another user's message--### `CANNOT_EXECUTE_ON_DM`--This action can't be performed in a DM--### `CANNOT_MODIFY_SYSTEM_WEBHOOK`--You can't edit system messages--### `CANNOT_REDEEM_PLUTONIUM_WITH_VISIONARY`--You already have lifetime {premium_tier_name}--### `CANNOT_REPORT_GUILD`--You can't report this community--### `CANNOT_REPORT_OWN_GUILD`--You can't report your own community--### `CANNOT_REPORT_OWN_MESSAGE`--You can't report your own message--### `CANNOT_REPORT_YOURSELF`--You can't report yourself--### `CANNOT_SEND_EMPTY_MESSAGE`--You can't send an empty message--### `CANNOT_SEND_FRIEND_REQUEST_TO_BLOCKED_USER`--You can't send a friend request to a blocked user--### `CANNOT_SEND_FRIEND_REQUEST_TO_SELF`--You can't send a friend request to yourself--### `CANNOT_SEND_MESSAGES_IN_NON_TEXT_CHANNEL`--You can't send messages in a non-text channel--### `CANNOT_SEND_MESSAGES_TO_USER`--You can't send messages to this user--### `CANNOT_TRANSFER_OWNERSHIP_TO_BOT`--Community ownership can't be transferred to a bot--### `CAPTCHA_REQUIRED`--Verification required. Try again--### `CHANNEL_ALREADY_FOLLOWED`--This channel already receives updates from that announcement channel--### `CHANNEL_HAS_FOLLOWED_CHANNELS`--Remove the followed channels posting here before converting it to an announcement channel--### `CHANNEL_HAS_THREADS`--Channels with threads can't be converted to announcement channels--### `CHANNEL_TYPE_CONVERSION_NOT_SUPPORTED`--Only text and announcement channels can be converted into each other--### `COMMUNICATION_DISABLED`--Communication is disabled--### `CONFLICT`--Conflict--### `CONNECTION_ALREADY_EXISTS`--A connection of this type with this identifier already exists--### `CONNECTION_INITIATION_TOKEN_INVALID`--The connection initiation token is invalid or has expired--### `CONNECTION_INVALID_TYPE`--The connection type is not supported--### `CONNECTION_LIMIT_REACHED`--You've reached the maximum number of connections ({limit})--### `CONNECTION_NOT_FOUND`--Unknown connection--### `CONNECTION_VERIFICATION_FAILED`--Connection verification failed--### `CONTENT_BLOCKED`--This content was blocked by safety systems--### `DATE_OF_BIRTH_ALREADY_SET`--Your date of birth is already set--### `DATE_OF_BIRTH_REQUIRED`--Enter your date of birth to continue--### `DELETION_FAILED`--We couldn't delete the resource--### `DIRECT_MESSAGES_DISABLED`--Direct messages are disabled on this instance--### `DIRECT_MESSAGE_EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `DISCOVERY_ALREADY_APPLIED`--This community has already applied to be listed in Explore--### `DISCOVERY_APPLICATION_ALREADY_REVIEWED`--This application to Explore has already been reviewed--### `DISCOVERY_APPLICATION_NOT_FOUND`--The application to Explore wasn't found--### `DISCOVERY_DISABLED`--Explore isn't available on this instance--### `DISCOVERY_INSUFFICIENT_MEMBERS`--This community doesn't have enough members to be listed in Explore--### `DISCOVERY_NOT_DISCOVERABLE`--This community isn't listed in Explore--### `DISCRIMINATOR_REQUIRED`--Discriminator is required--### `EMAIL_CODES_UNAVAILABLE`--This instance can't send email codes. A request for an email code gets this when the instance has no working email delivery, when it is a username instance or when the account has no email of its own--### `PASSWORD_SIGN_IN_REQUIRED`--Sign in to this account with its password. No code was sent, and a client shows the password step--### `EMAIL_CODE_RESEND_COOLDOWN`--Wait a moment before asking for another code--### `EMAIL_DELIVERY_OFF`--This instance doesn't send email. Create a password reset link instead--### `EMAIL_SERVICE_NOT_TESTABLE`--Email service is temporarily unavailable--### `EMAIL_UNAVAILABLE_ON_INSTANCE`--This instance doesn't use email--### `EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `ENFORCEMENT_ACCOUNT_CLOSED`--This account is closed, so it can't be suspended--### `ENFORCEMENT_DECISION_ENDED`--This decision has already ended--### `ENFORCEMENT_DECISION_OWNS_STATE`--An enforcement decision owns this restriction--### `ENFORCEMENT_DECISION_REPLACED`--A later decision replaced this one, so it can no longer be ended--### `ENFORCEMENT_DELETION_STARTED`--The deletion of this account has already started, so the decision can no longer be ended--### `EXPLICIT_CONTENT_CANNOT_BE_SENT`--Explicit content can't be sent--### `FEATURE_NOT_AVAILABLE_SELF_HOSTED`--This feature isn't available on self-hosted instances--### `FEATURE_TEMPORARILY_DISABLED`--This feature is temporarily disabled--### `FILE_SIZE_TOO_LARGE`--File size is too large--### `FOLLOW_TARGET_CONTENT_WARNING_REQUIRED`--Updates from a channel with a content warning can only go to a channel with a content warning or an age restriction--### `FOLLOW_TARGET_NOT_AGE_RESTRICTED`--Updates from an age-restricted channel can only go to an age-restricted channel--### `FORBIDDEN`--Forbidden--### `FORUM_TAG_NAMES_MUST_BE_UNIQUE`--Tag names must be unique--### `FORUM_TAG_REQUIRED`--A tag is required to create a post in this channel--### `FRIEND_REQUEST_BLOCKED`--User does not accept friend requests at this time--### `FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `FRIENDS_DISABLED`--Friend requests are disabled on this instance--### `GATEWAY_TIMEOUT`--Gateway timeout--### `GENERAL_ERROR`--Something went wrong--### `GIFT_CODE_ALREADY_REDEEMED`--Gift code is already redeemed--### `GLOBAL_IP_BANNED`--{product_name} blocked access from this network--### `GLOBAL_IP_TEMPORARILY_BANNED`--{product_name} blocked access from this network--### `GONE`--Gone--### `GROUP_DM_MATURE_CONTENT_INELIGIBLE`--Not everyone in this group is eligible for mature content--### `GROUP_DM_RECIPIENTS_NOT_ADDABLE`--One or more selected users can't be added to this group DM--### `GUILD_CREATION_EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `GUILD_CREATION_PERMISSION_REQUIRED`--You don't have permission to create communities on this instance--### `GUILD_EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `GUILD_TEMPLATE_INVALID`--The community template data is invalid or malformed--### `GUILD_VERIFICATION_REQUIRED`--Claim your account to talk in this community. An unclaimed account gets this in a community whose verification level is above None. In a community with the High level, a member who joined less than 10 minutes ago gets it too, and the message then says "You can talk here once you've been a member for 10 minutes."--### `GUILD_VISITS_DISABLED`--This community asks people to join before previewing it--### `GUILD_VISIT_AGE_RESTRICTED`--This community is for adults only--### `GUILD_VISIT_NOT_FOUND`--You're not previewing this community anymore--### `HANDOFF_CODE_EXPIRED`--Handoff code expired--### `HARVEST_EXPIRED`--Your data export request has expired--### `HARVEST_FAILED`--Your data export request failed--### `HARVEST_NOT_READY`--Your data export is still being prepared--### `HIDE_MEDIA_DOWNLOAD_OPTION_MEDIA_ONLY`--Hiding media download options is only available in media channels--### `INSTANCE_POLICY_TRANSITION_NOT_ALLOWED`--This instance policy change is not allowed--### `INSTANT_ACCOUNTS_DISABLED`--Creating an account from just a display name isn't available right now--### `INTERNAL_SERVER_ERROR`--Internal server error--### `INVALID_ACCOUNT_HANDOFF_NONCE`--This sign-up link isn't valid--### `INVALID_ACLS_FORMAT`--Invalid ACL format--### `INVALID_API_ORIGIN`--Invalid API origin--### `INVALID_AUTH_TOKEN`--Invalid or expired authorization token--### `INVALID_BOT_FLAG`--Invalid bot flag--### `INVALID_CAPTCHA`--Verification failed. Try again--### `INVALID_CHANNEL_TYPE`--Invalid channel type--### `INVALID_CHANNEL_TYPE_FOR_CALL`--Calls can only be made in direct messages or group DMs--### `INVALID_DSA_REPORT_TARGET`--Invalid DSA report target--### `INVALID_DSA_TICKET`--Invalid DSA ticket--### `INVALID_DSA_VERIFICATION_CODE`--Invalid DSA verification code--### `INVALID_FLAGS_FORMAT`--Invalid flags format--### `INVALID_FOLLOW_TARGET_CHANNEL`--Followed channels can only post into text channels--### `INVALID_FORM_BODY`--Invalid form body--### `INVALID_HANDOFF_CODE`--Invalid handoff code--### `INVALID_ORIGIN_HANDOFF_NONCE`--This sign-in transfer doesn't match the one you started--### `INVALID_PERMISSIONS_INTEGER`--Permissions must be a valid integer--### `INVALID_PERMISSIONS_NEGATIVE`--Permissions must be non-negative--### `INVALID_REPORT_FLOW_ANSWERS`--These answers don't match the report form--### `INVALID_REQUEST`--Invalid request--### `INVALID_SIGN_IN_CODE`--That code isn't right-### `INVALID_STREAM_KEY_FORMAT`--Invalid stream key format--### `INVALID_STREAM_THUMBNAIL_PAYLOAD`--Invalid stream thumbnail payload--### `INVALID_SYSTEM_FLAG`--Invalid system flag--### `INVALID_THREAD_NOTIFICATION_SETTINGS`--Invalid thread notification settings--### `INVALID_TIMESTAMP`--Invalid timestamp--### `INVALID_TOKEN`--Invalid or expired authorization token--### `INVALID_WEBAUTHN_AUTHENTICATION_COUNTER`--Invalid WebAuthn authentication counter--### `INVALID_WEBAUTHN_CREDENTIAL`--Failed to verify WebAuthn credential--### `INVALID_WEBAUTHN_CREDENTIAL_COUNTER`--Invalid WebAuthn credential counter--### `INVALID_WEBAUTHN_PUBLIC_KEY_FORMAT`--Invalid WebAuthn public key format--### `INVITES_DISABLED`--Invites are disabled--### `IP_AUTHORIZATION_REQUIRED`--IP authorization is required--### `IP_AUTHORIZATION_RESEND_COOLDOWN`--IP authorization resend is on cooldown--### `IP_AUTHORIZATION_RESEND_LIMIT_EXCEEDED`--IP authorization resend limit exceeded--### `IP_BAN_DECLINED`--This IP address cannot be added to the blocklist--### `IP_BAN_LINKED_TO_DECISION`--This network block belongs to an enforcement decision--### `MAX_ACTIVE_THREADS`--This community has reached its active thread limit of {count}--### `MAX_APPLICATIONS`--You've reached the maximum of {limit, plural, one {# application} other {# applications}}--### `MAX_BOOKMARKS`--You've reached the maximum of {count, plural, one {# bookmark} other {# bookmarks}}--### `MAX_CATEGORY_CHANNELS`--You've reached the maximum of {count, plural, one {# category channel} other {# category channels}}--### `MAX_EMOJIS`--You've reached the maximum of {count, plural, one {# emoji} other {# emojis}}--### `MAX_FAVORITE_MEMES`--You've reached the maximum of {count, plural, one {# saved media item} other {# saved media items}}--### `MAX_FORUM_TAGS`--This channel has reached its tag limit of {count}--### `MAX_FRIENDS`--You've reached the maximum of {count, plural, one {# friend} other {# friends}}--### `MAX_GROUP_DMS`--You've reached the maximum of {count, plural, one {# group DM} other {# group DMs}}--### `MAX_GROUP_DM_RECIPIENTS`--You've reached the maximum of {count, plural, one {# group DM recipient} other {# group DM recipients}}--### `MAX_GUILDS`--You've reached the maximum of {count, plural, one {# community} other {# communities}}--### `MAX_GUILD_CHANNELS`--You've reached the maximum of {count, plural, one {# community channel} other {# community channels}}--### `MAX_GUILD_MEMBERS`--You've reached the maximum of {count, plural, one {# community member} other {# community members}}--### `MAX_GUILD_ROLES`--You've reached the maximum of {count, plural, one {# community role} other {# community roles}}--### `MAX_INVITES`--You've reached the maximum of {count, plural, one {# invite} other {# invites}}--### `MAX_PINNED_THREADS_IN_FORUM`--This channel has reached its pinned post limit of {count}--### `MAX_REACTIONS`--You've reached the maximum of {count, plural, one {# reaction} other {# reactions}}--### `MAX_STICKERS`--You've reached the maximum of {count, plural, one {# sticker} other {# stickers}}--### `MAX_THREAD_MEMBERS`--This thread has reached its member limit of {count}--### `MAX_WEBHOOKS_PER_CHANNEL`--You've reached the maximum of {count, plural, one {# webhook} other {# webhooks}} per channel--### `MAX_WEBHOOKS_PER_GUILD`--You've reached the maximum of {count, plural, one {# webhook} other {# webhooks}} per community--### `MEDIA_METADATA_ERROR`--Media metadata error--### `MESSAGE_ALREADY_CROSSPOSTED`--This message has already been published--### `MESSAGE_CROSSPOST_RATE_LIMITED`--This channel has reached its publishing limit--### `MESSAGE_NOT_CROSSPOSTABLE`--This message cannot be published--### `METHOD_NOT_ALLOWED`--Method not allowed--### `MFA_EMAIL_VERIFICATION_REQUIRED`--Confirm your email address to use two-factor authentication or passkeys--### `MISSING_ACCESS`--You don't have access to this resource or feature--### `MISSING_ACL`--Missing ACL--### `MISSING_AUTHORIZATION`--Missing or invalid authorization header--### `MISSING_OAUTH_SCOPE`--The requested scope isn't supported or you don't have permission to request it--### `MISSING_PERMISSIONS`--You don't have the permissions required to perform this action--### `NEW_CONVERSATIONS_LIMITED`--You can't start new conversations right now. Please try again later--### `NOT_A_BOT_APPLICATION`--This application isn't a bot--### `NOT_FOUND`--Not found--### `NOT_FRIENDS_WITH_USER`--You're not friends with this user--### `NOT_IMPLEMENTED`--Not implemented--### `NO_ACTIVE_CALL`--No active call--### `NO_ACTIVE_SUBSCRIPTION`--No active subscription--### `NO_PASSKEYS_REGISTERED`--No passkeys are registered--### `NO_PENDING_DELETION`--Invalid request--### `NO_TAGS_AVAILABLE_TO_NON_MODERATORS`--A tag is required, but only moderators can apply the tags in this channel--### `NO_USERS_WITH_FLUXERTAG_EXIST`--There are too many users with this username--### `NSFW_CONTENT_AGE_RESTRICTED`--NSFW content is age restricted--### `PASSKEY_AUTHENTICATION_FAILED`--Passkey authentication failed--### `PASSWORD_REQUIRED_TO_CLAIM`--Set a password to keep this account. A claim with no password and no passkey gets this on a username instance, on an email instance that can't send email codes and on an instance whose `verification_basis` is `local_credential`. The message says which of these applies--### `PREMIUM_PURCHASE_BLOCKED`--No active subscription--### `PREVIEW_MUST_BE_JPEG`--Preview must be JPEG--### `PROCESSING_FAILED`--We couldn't process the request--### `PROFILE_EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `PUBLISHED_MESSAGE_EDIT_RATE_LIMITED`--This published message has reached its editing limit--### `PURCHASE_EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `PURCHASE_RECEIPT_EMAIL_REQUIRED`--Purchases need an email address to send receipts to, and this account doesn't have one. A verified account with no email, such as any account on a username instance, gets this when it starts a checkout--### `RATE_LIMITED`--You're being rate limited--### `REACTION_EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `REGISTRATION_CLOSED`--Registration is closed on this instance. A self-hosted instance also returns it for every new account from the moment its first admin account exists until setup finishes--### `REGISTRATION_CREDENTIALS_REQUIRED`--This instance reviews new accounts. Sign up from the sign-up page with a password so you can sign in once approved--### `REGISTRATION_CREDENTIAL_REQUIRED`--Choose a password to sign up. A sign-up with an email and no password gets this on an email instance that can't send email codes--### `REGISTRATION_PENDING_APPROVAL`--This registration is waiting for admin approval--### `REGISTRATION_REJECTED`--This registration request was rejected--### `REGISTRATION_URL_INVALID`--This registration link is invalid or has expired--### `REPORT_ALREADY_RESOLVED`--Report already resolved--### `REPORT_BANNED`--You've been banned from submitting reports--### `REPORT_EMAIL_VERIFICATION_REQUIRED`--Email verification is required for this action--### `REPORT_FLOW_OUTDATED`--The report form changed while you were filling it in--### `REPORT_UNDER_LEGAL_HOLD`--This report is under a legal hold and can't be deleted--### `RESOURCE_LOCKED`--This resource is being modified--### `RESPONSE_VALIDATION_ERROR`--Response validation failed: {errors}--### `SEARCH_INDEX_NOT_READY`--The search index isn't ready yet--### `SERVICE_UNAVAILABLE`--Service unavailable--### `SESSION_TOKEN_MISMATCH`--Session token mismatch--### `SIGN_IN_CODE_EXPIRED`--This code has expired--### `SINGLE_COMMUNITY_CANNOT_CREATE_GUILDS`--This instance is a single community, so additional communities cannot be created--### `SINGLE_COMMUNITY_CANNOT_DELETE`--The community for this instance cannot be deleted--### `SINGLE_COMMUNITY_CANNOT_LEAVE`--You cannot leave the community for this instance--### `SLOWMODE_RATE_LIMITED`--Slowmode rate limited--### `SSO_REQUIRED`--This instance requires single sign-on. A local sign-in or sign-up gets this while an admin requires single sign-on, and the message points to the SSO button on the sign-in page. An account linked to the SSO provider gets it when it tries to change its email or password, and an SSO sign-in gets it when automatic account creation is off and no account matches. The message says which of these applies--### `STREAM_KEY_CHANNEL_MISMATCH`--Stream key channel mismatch--### `STREAM_KEY_SCOPE_MISMATCH`--Stream key scope mismatch--### `STRIPE_ERROR`--Payment processing encountered an error--### `STRIPE_GIFT_REDEMPTION_IN_PROGRESS`--Gift code redemption is in progress--### `STRIPE_INVALID_PRODUCT`--Invalid product selection--### `STRIPE_INVALID_PRODUCT_CONFIGURATION`--Invalid product configuration--### `STRIPE_NO_ACTIVE_SUBSCRIPTION`--No active subscription found--### `STRIPE_NO_PURCHASE_HISTORY`--No purchase history found--### `STRIPE_NO_SUBSCRIPTION`--No subscription found--### `STRIPE_PAYMENT_NOT_AVAILABLE`--Payment processing is temporarily unavailable--### `STRIPE_SUBSCRIPTION_ALREADY_CANCELING`--Subscription is already set to cancel at period end--### `STRIPE_SUBSCRIPTION_NOT_CANCELING`--Subscription isn't set to cancel--### `STRIPE_WEBHOOK_NOT_AVAILABLE`--Webhook processing isn't available--### `STRIPE_WEBHOOK_SIGNATURE_INVALID`--Stripe webhook signature is invalid--### `STRIPE_WEBHOOK_SIGNATURE_MISSING`--Stripe webhook signature is missing--### `SUDO_MODE_REQUIRED`--Sudo mode is required--### `SUDO_SECOND_FACTOR_REQUIRED`--Confirm it's you with your authenticator app, passkey or a backup code. An email code isn't accepted here-### `SYNCED_PREFERENCES_CONFLICT`--Your preferences changed on another device--### `TAG_ALREADY_TAKEN`--This tag is already taken--### `TEMPORARY_INVITE_REQUIRES_PRESENCE`--Temporary invite requires presence--### `TEST_HARNESS_DISABLED`--Test harness is disabled--### `TEST_HARNESS_FORBIDDEN`--Test harness is forbidden--### `THREAD_ALREADY_CREATED_FOR_MESSAGE`--A thread has already been created for this message--### `THREAD_ARCHIVED`--This thread is archived--### `THREAD_LOCKED`--This thread is locked--### `TWO_FACTOR_REQUIRED`--Two-factor authentication is required--### `TWO_FA_NOT_ENABLED`--Two-factor authentication isn't enabled--### `UNAUTHORIZED`--Unauthorized--### `UNCLAIMED_ACCOUNT_CANNOT_ACCEPT_FRIEND_REQUESTS`--Claim your account to accept friend requests--### `UNCLAIMED_ACCOUNT_CANNOT_ADD_REACTIONS`--Claim your account to add reactions--### `UNCLAIMED_ACCOUNT_CANNOT_CREATE_APPLICATIONS`--Claim your account to create applications--### `UNCLAIMED_ACCOUNT_CANNOT_CREATE_GUILDS`--Claim your account to create communities--### `UNCLAIMED_ACCOUNT_CANNOT_JOIN_GROUP_DMS`--Claim your account to join group chats--### `UNCLAIMED_ACCOUNT_CANNOT_JOIN_ONE_ON_ONE_VOICE_CALLS`--Claim your account to start or join calls--### `UNCLAIMED_ACCOUNT_CANNOT_JOIN_VOICE_CHANNELS`--Claim your account to join voice channels--### `UNCLAIMED_ACCOUNT_CANNOT_MAKE_PURCHASES`--Claim your account to make purchases--### `UNCLAIMED_ACCOUNT_CANNOT_SEND_DIRECT_MESSAGES`--Claim your account to send direct messages--### `UNCLAIMED_ACCOUNT_CANNOT_SEND_FRIEND_REQUESTS`--Claim your account to send friend requests--### `UNCLAIMED_ACCOUNT_CANNOT_SEND_MESSAGES`--Claim your account to send messages--### `UNCLAIMED_ACCOUNT_CANNOT_SUBMIT_REPORTS`--Claim your account to submit reports--### `UNKNOWN_ACCOUNT_HANDOFF`--This sign-up link has expired or was already used--### `UNKNOWN_APPLICATION`--Unknown application--### `UNKNOWN_CHANNEL`--Channel wasn't found--### `UNKNOWN_EMOJI`--Unknown emoji--### `UNKNOWN_ENFORCEMENT_DECISION`--Unknown enforcement decision--### `UNKNOWN_FAVORITE_MEME`--Unknown saved media--### `UNKNOWN_FORUM_TAG`--Tag wasn't found--### `UNKNOWN_GIFT_CODE`--Unknown gift code--### `UNKNOWN_GUILD`--Community wasn't found--### `UNKNOWN_HARVEST`--Unknown data export--### `UNKNOWN_INVITE`--Invite wasn't found or is no longer valid--### `UNKNOWN_MEMBER`--Member wasn't found in this community--### `UNKNOWN_MESSAGE`--Message wasn't found--### `UNKNOWN_ORIGIN_HANDOFF`--This sign-in transfer has expired or was already used--### `UNKNOWN_REPORT`--Unknown report--### `UNKNOWN_ROLE`--Role wasn't found--### `UNKNOWN_SIGN_IN_TICKET`--This sign-in attempt has expired--### `UNKNOWN_STICKER`--Unknown sticker--### `UNKNOWN_THREAD_MEMBER`--Thread member wasn't found--### `UNKNOWN_USER`--User wasn't found--### `UNKNOWN_USER_FLAG`--The specified user flag isn't recognized--### `UNKNOWN_VOICE_REGION`--Unknown voice region--### `UNKNOWN_VOICE_SERVER`--Unknown voice server--### `UNKNOWN_WEBAUTHN_CREDENTIAL`--Unknown WebAuthn credential--### `UNKNOWN_WEBHOOK`--Unknown webhook--### `UPDATE_FAILED`--We couldn't update the resource--### `USERNAME_NOT_AVAILABLE`--This username is not available--### `USERNAME_SIGN_IN_ONLY`--This is only available on instances where people sign in with a username--### `USER_BANNED_FROM_GUILD`--This user is banned from this community--### `USER_IP_BANNED_FROM_GUILD`--This user's IP is banned from this community--### `USER_NOT_IN_VOICE`--This user isn't in voice--### `USER_OWNS_GUILDS`--This user owns communities--### `USE_CLAIM_ROUTE`--Add an email address to your account first--### `VALIDATION_ERROR`--Validation failed--### `VOICE_CHANNEL_FULL`--Voice channel is full--### `WEBAUTHN_CREDENTIAL_LIMIT_REACHED`--You've reached the maximum of {count, plural, one {# WebAuthn credential} other {# WebAuthn credentials}}--### `WEBHOOK_FORUM_TARGET_CONFLICT`--You can't specify both `thread_id` and `thread_name`--### `WEBHOOK_FORUM_TARGET_REQUIRED`--Webhooks posting to this channel need a `thread_id` or a `thread_name`--### `WEBHOOK_SERVICE_FORUM_UNSUPPORTED`--This webhook service can't post to a forum or media channel without a `thread_id`--### `WEBHOOK_THREAD_NAME_REQUIRES_FORUM`--`thread_name` and `applied_tags` only work in forum and media channels---## Validation error code registry--These codes appear in the `code` field of an element in the top-level `errors` array on an `INVALID_FORM_BODY` response. Each names one specific input constraint. A schema failure whose constraint names no code of its own reports one of the [default schema failure codes](#default-schema-failure-codes). The registry is closed. Each entry states the leading sentence of the English source message, the same way.--### `ACCENT_COLOR_CHANGED_TOO_MANY_TIMES`--You've changed your accent color too often recently--### `AFK_CHANNEL_MUST_BE_IN_GUILD`--AFK channel must be in this community--### `AFK_CHANNEL_MUST_BE_VOICE`--AFK channel must be a voice channel--### `AGE_RESTRICTED`--This sensitive content filter isn't available for your age group--### `ALL_CHANNELS_MUST_BELONG_TO_GUILD`--All channels must belong to this community--### `ANIMATED_AVATARS_REQUIRE_PREMIUM`--Animated avatars require Premium--### `ANIMATED_GUILD_BANNER_REQUIRES_FEATURE`--Animated community banner requires ANIMATED_BANNER feature--### `ATTACHMENTS_NOT_ALLOWED_FOR_MESSAGE`--Attachments aren't allowed for this message--### `ATTACHMENT_ID_NOT_FOUND_IN_MESSAGE`--Attachment with ID {attachmentId} wasn't found in the message--### `ATTACHMENT_MUST_BE_IMAGE`--Attachment "{filename}" must be an image file (png, jpg, jpeg, webp, or gif)--### `AVATAR_CHANGED_TOO_MANY_TIMES`--You've changed your avatar too often recently--### `BANNERS_REQUIRE_PREMIUM`--Banners require Premium--### `BANNER_CHANGED_TOO_MANY_TIMES`--You've changed your banner too often recently--### `BASE64_LENGTH_INVALID`--Base64 string length must be between {min} and {maxLength} characters--### `BIO_CHANGED_TOO_MANY_TIMES`--You've changed your bio too often recently--### `BOT_DISCRIMINATOR_CANNOT_BE_CHANGED`--Bot discriminator can't be changed--### `BOT_SEARCH_SCOPE_UNAVAILABLE`--Bots can only search within a single community or channel--### `CANNOT_ADD_YOURSELF_TO_GROUP_DM`--You can't add yourself to a group DM--### `CANNOT_DELETE_MORE_THAN_100_MESSAGES`--You can't delete more than {max, plural, one {# message} other {# messages}} at once--### `CANNOT_DM_YOURSELF`--You can't DM yourself--### `CANNOT_EDIT_ATTACHMENT_METADATA`--Users with MANAGE_MESSAGES can only edit attachment descriptions, not other metadata--### `CANNOT_LEAVE_GUILD_AS_OWNER`--You can't leave a community as the owner--### `CANNOT_POSITION_CHANNEL_RELATIVE_TO_ITSELF`--You can't position a channel relative to itself or its descendants--### `CANNOT_PRELOAD_MORE_THAN_100_CHANNELS`--You can't preload more than {max, plural, one {# channel} other {# channels}} at once--### `CANNOT_REFERENCE_ATTACHMENTS_WITHOUT_ATTACHMENTS`--You can't reference attachments when no attachments are provided--### `CANNOT_REORDER_EVERYONE_ROLE`--You can't reorder the @everyone role--### `CANNOT_REPLY_TO_SYSTEM_MESSAGE`--You can't reply to a system message--### `CANNOT_SET_HOIST_FOR_EVERYONE_ROLE`--You can't set hoist position for the @everyone role--### `CANNOT_SPECIFY_BOTH_BEFORE_AND_AFTER`--You can't specify both `before` and `after`--### `CAPTCHA_REQUIRED_BY_INSTANT_ACCOUNTS`--Turn off instant accounts before turning off the captcha--### `CATEGORIES_CANNOT_HAVE_PARENTS`--Categories can't have parents--### `CATEGORIES_CANNOT_HAVE_PARENT_CHANNEL`--Categories can't have a parent channel--### `CHANGING_DISCRIMINATOR_REQUIRES_PREMIUM`--Changing your discriminator requires Premium--### `CHANNEL_DOES_NOT_EXIST`--Channel not found--### `CHANNEL_ID_IS_REQUIRED`--`channel_id` is required--### `CHANNEL_MUST_BE_DM_OR_GROUP_DM`--Channel must be a DM or a group DM--### `CHANNEL_MUST_BE_VOICE`--Channel must be a voice channel--### `CHANNEL_NOT_FOUND`--Channel not found--### `COLOR_VALUE_TOO_HIGH`--Color value must not exceed 0xffffff--### `COLOR_VALUE_TOO_LOW`--Color value must be at least 0x000000--### `CONTENT_EXCEEDS_MAX_LENGTH`--Text must not exceed {maxLength, plural, one {# character} other {# characters}}--### `CONTEXT_CHANNEL_OR_GUILD_ID_REQUIRED`--A context channel or community ID is required--### `CUSTOM_EMOJIS_REQUIRE_PREMIUM_OUTSIDE_SOURCE`--You can't use custom emojis outside their source communities without Premium--### `CUSTOM_EMOJI_NOT_FOUND`--Custom emoji wasn't found--### `CUSTOM_STICKERS_IN_DMS_REQUIRE_PREMIUM`--You can't use custom stickers in DMs without Premium--### `CUSTOM_STICKERS_REQUIRE_PREMIUM_OUTSIDE_SOURCE`--You can't use custom stickers outside their source communities without Premium--### `CUSTOM_STICKER_NOT_FOUND`--Custom sticker wasn't found--### `DISCOVERABLE_GUILD_VERIFICATION_LEVEL_TOO_LOW`--Communities listed in Explore must have a verification level of at least Low--### `DISCRIMINATOR_INVALID_FORMAT`--`Discriminator must be {min}–{max} digits`--### `DISCRIMINATOR_NOT_SUPPORTED_ON_INSTANCE`--This instance doesn't use tags. Your username is unique on its own--### `DISCRIMINATOR_OUT_OF_RANGE`--Discriminator must be between {min} and {max}--### `DUPLICATE_ATTACHMENT_IDS_NOT_ALLOWED`--Duplicate attachment IDs aren't allowed--### `DUPLICATE_FILE_INDEX`--Duplicate file index: {index}--### `DUPLICATE_RECIPIENTS_NOT_ALLOWED`--Duplicate recipients aren't allowed--### `EMAIL_ALREADY_IN_USE`--Email is already in use--### `EMAIL_DELIVERY_REQUIRES_EMAIL_IDENTITY`--Email delivery only works when people sign in with an email--### `EMAIL_DOMAIN_NOT_ALLOWED`--This instance only accepts email addresses from certain domains--### `EMAIL_DOMAIN_NOT_ALLOWED_FOR_SSO`--This email domain isn't allowed for single sign-on--### `EMAIL_IS_REQUIRED`--Email is required--### `EMAIL_LENGTH_INVALID`--Email address must be between {min} and {max} characters--### `EMAIL_MUST_BE_CHANGED_VIA_TOKEN`--Email must be changed via token--### `EMAIL_TOKEN_EXPIRED`--Email token expired--### `EMBEDS_EXCEED_MAX_CHARACTERS`--Embeds must not exceed {maxCharacters, plural, one {# character} other {# characters}} in total--### `EMBED_INDEX_OUT_OF_BOUNDS`--Embed index {embedIndex} is out of bounds (message has {embedCount, plural, one {# embed} other {# embeds}})--### `EMBED_SPLASH_REQUIRES_FEATURE`--Embed splash requires INVITE_SPLASH feature--### `ENFORCEMENT_CONFIRMATIONS_REQUIRED`--Confirm that the evidence is preserved and that any required report is filed--### `ENFORCEMENT_EVIDENCE_DM_UNREPORTED`--Messages in direct messages can only be used as evidence when a linked report covers that conversation--### `ENFORCEMENT_EVIDENCE_NOT_ALLOWED`--The messages being removed are saved as evidence, so leave out separate evidence messages--### `ENFORCEMENT_EVIDENCE_NOT_FOUND`--One of the evidence messages wasn't found--### `ENFORCEMENT_EVIDENCE_NOT_SUBJECT`--Every evidence message must be from the account or community this decision is about--### `ENFORCEMENT_EVIDENCE_REQUIRED`--This decision needs at least one evidence message--### `ENFORCEMENT_FACTS_REQUIRED`--Add an evidence message or a note to the user--### `ENFORCEMENT_INTERNAL_NOTE_REQUIRED`--Add an internal note in the X-Audit-Log-Reason header--### `ENFORCEMENT_KIND_NOT_ALLOWED`--This reason can't be used for this action--### `ENFORCEMENT_LIMIT_END_INVALID`--Only a reports limit has an end date, and it must be within the next 365 days--### `ENFORCEMENT_LIMIT_NOT_ALLOWED`--This reason can't be used for this limit--### `ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED`--Only a permanent suspension or a closure for a broken rule can block networks--### `ENFORCEMENT_NETWORK_SHARED`--Other accounts that aren't restricted were last active on this network, so it can't be blocked--### `ENFORCEMENT_NETWORK_UNKNOWN`--This account hasn't used this network in the last 30 days--### `ENFORCEMENT_OUTCOME_NOT_ALLOWED`--Only a reversal can end this kind of decision, because there is nothing to lift--### `ENFORCEMENT_PERMANENT_REQUIRED`--Suspensions for this reason must be permanent--### `ENFORCEMENT_REPORT_MISMATCH`--Every linked report must exist and be about the account or community this decision is about--### `ENFORCEMENT_REPORT_REQUIRED`--Link at least one report when the source is a report--### `ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED`--A rights holder can only be given for copyright decisions--### `ENFORCEMENT_RIGHTS_HOLDER_REQUIRED`--Copyright decisions need the rights holder or the right concerned--### `ENFORCEMENT_STATEMENT_NOT_ALLOWED`--Decisions for this reason can't include a note to the user--### `ENTRANCE_SOUND_DURATION_EXCEEDS_LIMIT`--Entrance sounds can be at most {max_ms, number}ms long--### `ENTRANCE_SOUND_INVALID_FORMAT`--Entrance sounds must be MP3, OGG, M4A, or WAV audio--### `ENTRANCE_SOUND_INVALID_SCOPE`--Invalid entrance sound scope--### `ENTRANCE_SOUND_NAME_LENGTH_INVALID`--Entrance sound names must be between 1 and {max, number} characters--### `ENTRANCE_SOUND_NOT_FOUND`--Entrance sound not found--### `ENTRANCE_SOUND_QUOTA_REACHED`--You've reached the limit of {max, number} saved entrance sounds--### `ENTRANCE_SOUND_SIZE_EXCEEDS_LIMIT`--Entrance sounds can be at most {max_bytes, number} bytes--### `FAILED_TO_FETCH_SSO_USER_INFO`--We couldn't fetch your SSO user info--### `FAILED_TO_PARSE_MULTIPART_FORM_DATA`--We couldn't parse the multipart form data--### `FAILED_TO_PARSE_SSO_USER_INFO`--We couldn't read the response from your SSO provider--### `FAILED_TO_UPLOAD_IMAGE`--We couldn't upload the image--### `FAVORITE_MEME_NAME_REQUIRED`--Saved media name is required--### `FAVORITE_MEME_NOT_FOUND`--Saved media wasn't found--### `FILENAME_LENGTH_INVALID`--Filename must be between {min} and {max} characters--### `FILE_INDEX_EXCEEDS_MAXIMUM`--File index {index} exceeds the maximum allowed index of {maxIndex}--### `FILE_NOT_FOUND`--File not found--### `FLAG_REQUIRES_ENFORCEMENT_ROUTE`--This flag is part of a restriction. Change it through the suspension, deletion or feature limit routes--### `FORWARD_MESSAGES_CANNOT_CONTAIN_CONTENT`--Forwarded messages can't include content, embeds, attachments, or stickers--### `FORWARD_REFERENCE_REQUIRES_CHANNEL_AND_MESSAGE`--Forward message reference must include `channel_id` and `message_id`--### `GLOBAL_NAME_CANNOT_CONTAIN_RESERVED_TERMS`--Display name can't contain "system message"--### `GLOBAL_NAME_LENGTH_INVALID`--Global name must be between {min} and {max} characters--### `GLOBAL_NAME_RESERVED_VALUE`--Global name can't be "everyone" or "here"--### `GUILD_BANNER_REQUIRES_FEATURE`--Community banner requires BANNER feature--### `GUILD_FEATURE_NOT_TOGGLEABLE`--This feature cannot be toggled--### `GUILD_ID_MUST_MATCH_REFERENCED_MESSAGE`--Community ID must match the community containing the channel the referenced message was fetched from--### `GUILD_ID_REQUIRED_FOR_SEARCH_INDEX`--Community ID is required for channel message and member search indexes--### `IDENTIFIER_FIRST_REQUIRES_EMAIL_IDENTITY`--Email-first sign-in only works when people sign in with an email--### `IMAGE_SIZE_EXCEEDS_LIMIT`--Image size exceeds {maxSize} bytes--### `INSTANCE_ADDRESS_REQUIRED`--This instance uses usernames. Enter the username you want followed by @{host}--### `INSTANT_ACCOUNTS_REQUIRE_CAPTCHA`--Turn on the captcha before allowing instant accounts--### `INTEGER_OUT_OF_INT64_RANGE`--Integer value is out of the valid int64 range--### `INVALID_ALLOWED_DOMAIN`--"{domain}" isn't a valid domain--### `INVALID_AUDIT_LOG_REASON`--Invalid audit log reason--### `INVALID_BASE64_FORMAT`--The provided value is in an invalid format--### `INVALID_CHANNEL_ID`--Invalid channel ID: {channelId}--### `INVALID_CODE`--Invalid code--### `INVALID_DATE_OF_BIRTH_FORMAT`--Enter your real date of birth--### `INVALID_EMAIL_ADDRESS`--Invalid email address format--### `INVALID_EMAIL_FORMAT`--Invalid email address format--### `INVALID_EMAIL_LOCAL_PART`--Invalid email address format--### `INVALID_EMAIL_OR_PASSWORD`--Check your email and password--### `INVALID_EMAIL_TOKEN`--Invalid email token--### `INVALID_FILE_FIELD_NAME`--Invalid file field name: {key}--### `INVALID_FORMAT`--The provided value is in an invalid format--### `INVALID_IMAGE_FORMAT`--Invalid image format--### `INVALID_INTEGER_FORMAT`--Invalid integer format--### `INVALID_ISO_TIMESTAMP`--Must be a valid ISO timestamp--### `INVALID_JSON_IN_PAYLOAD_JSON`--Invalid JSON in `payload_json`--### `INVALID_LOGIN_OR_PASSWORD`--Invalid username or password--### `INVALID_MESSAGE_DATA`--Invalid message data--### `INVALID_MFA_CODE`--Invalid MFA code--### `INVALID_OR_EXPIRED_AUTHORIZATION_TICKET`--Invalid or expired authorization ticket--### `INVALID_OR_EXPIRED_AUTHORIZATION_TOKEN`--Invalid or expired authorization token--### `INVALID_OR_EXPIRED_RESET_TOKEN`--Invalid or expired password reset token--### `INVALID_OR_EXPIRED_REVERT_TOKEN`--Invalid or expired revert token--### `INVALID_OR_EXPIRED_SSO_STATE`--Invalid or expired SSO state--### `INVALID_OR_EXPIRED_TICKET`--Invalid or expired ticket--### `INVALID_OR_EXPIRED_VERIFICATION_TOKEN`--Invalid or expired verification token--### `INVALID_OR_RESTRICTED_RTC_REGION`--Invalid or restricted RTC region: {region}--### `INVALID_PARENT_CHANNEL`--Invalid parent channel--### `INVALID_PASSWORD`--Check your email and password--### `INVALID_PROOF_TOKEN`--Invalid proof token--### `INVALID_RECOVERY_KEY`--Invalid username or recovery key--### `INVALID_ROLE_ID`--Invalid role ID: {roleId}--### `INVALID_RTC_REGION`--Invalid RTC region: {region}--### `INVALID_SNOWFLAKE`--Invalid snowflake--### `INVALID_SNOWFLAKE_FORMAT`--Invalid snowflake--### `INVALID_SSO_AUTHORIZATION_CODE`--Invalid SSO authorization code--### `INVALID_SSO_TOKEN`--Invalid SSO token--### `INVALID_TIMEOUT_VALUE`--Invalid timeout value--### `INVALID_TIMEZONE_IDENTIFIER`--Invalid time zone identifier--### `INVALID_TRUSTED_DOMAINS`--The wildcard (*) can't be combined with specific domains--### `INVALID_URL_FORMAT`--Invalid URL format--### `INVALID_URL_OR_ATTACHMENT_FORMAT`--Invalid URL format or attachment reference--### `INVALID_VERIFICATION_CODE`--Invalid verification code--### `INVITE_SPLASH_REQUIRES_FEATURE`--Invite splash requires INVITE_SPLASH feature--### `MAX_FAVORITE_MEME_TAGS_EXCEEDED`--You can only add up to {limit, plural, one {# tag} other {# tags}} per saved media item--### `MEDIA_ALREADY_IN_FAVORITE_MEMES`--This media is already in your saved media--### `MESSAGES_ARRAY_REQUIRED_AND_NOT_EMPTY`--`messages` array is required and must not be empty--### `MESSAGES_WITH_SNAPSHOTS_CANNOT_BE_EDITED`--Messages with snapshots can't be edited--### `MESSAGE_HISTORY_CUTOFF_BEFORE_GUILD_CREATION`--Message history cutoff can't be before the community was created--### `MESSAGE_HISTORY_CUTOFF_IN_FUTURE`--Message history cutoff can't be in the future--### `MESSAGE_IDS_CANNOT_BE_EMPTY`--`message_ids` can't be empty--### `MODERATION_BASIS_REQUIRED`--Give a basis to delete the messages--### `MULTIPLE_FILES_FOR_INDEX_NOT_ALLOWED`--Multiple files for index {index} aren't allowed--### `MUST_AGREE_TO_TOS_AND_PRIVACY_POLICY`--You need to accept the terms of service to create an account--### `MUST_BE_MINIMUM_AGE`--You must be at least {minAge, plural, one {# year} other {# years}} old to create an account--### `MUST_ENABLE_2FA_BEFORE_REQUIRING_FOR_MODS`--You must enable 2FA on your account before requiring it for moderators--### `MUST_HAVE_EMAIL_TO_CHANGE_IT`--You must have an email address to change it--### `MUST_START_SESSION_BEFORE_SENDING`--You must start a session before sending messages--### `NAME_EMPTY_AFTER_NORMALIZATION`--Name can't be empty after normalization--### `NEW_EMAIL_MUST_BE_DIFFERENT`--New email must be different from your current email--### `NOT_A_VALID_UNICODE_EMOJI`--Not a valid Unicode emoji--### `NO_FILE_FOR_ATTACHMENT`--No file was uploaded for attachment with ID {attachmentId}--### `NO_FILE_FOR_ATTACHMENT_METADATA`--No file was uploaded for attachment metadata with ID {attachmentId}--### `NO_NEW_EMAIL_REQUESTED`--No new email was requested--### `NO_ORIGINAL_EMAIL_ON_RECORD`--No original email is on record--### `NO_UPLOADED_PARTS_TO_FINALIZE`--No uploaded parts are available to finalize--### `NO_VALID_MEDIA_IN_MESSAGE`--No valid media was found in the message--### `ORIGINAL_EMAIL_ALREADY_VERIFIED`--Original email is already verified--### `ORIGINAL_EMAIL_MUST_BE_VERIFIED_FIRST`--Original email must be verified first--### `ORIGINAL_VERIFICATION_NOT_REQUIRED`--Original verification isn't required for this flow--### `PARENT_CHANNEL_NOT_IN_GUILD`--Parent channel isn't present in the community--### `PARENT_MUST_BE_CATEGORY`--Parent must be a category--### `PARSE_AND_USERS_OR_ROLES_CANNOT_BE_USED_TOGETHER`--You can't use `parse` together with `allowed_mentions.users` or `allowed_mentions.roles`--### `PASSWORD_IS_TOO_COMMON`--Your password is too common--### `PASSWORD_LENGTH_INVALID`--String length must be between {min} and {max} characters--### `PASSWORD_NOT_SET`--Password isn't set--### `PRECEDING_CHANNEL_MUST_SHARE_PARENT`--Preceding channel must share the same parent as the moved channel--### `PRECEDING_CHANNEL_NOT_IN_GUILD`--Preceding channel isn't present in the community--### `PRONOUNS_CHANGED_TOO_MANY_TIMES`--You've changed your pronouns too often recently--### `RECIPIENT_IDS_CANNOT_BE_EMPTY`--Recipient IDs can't be empty--### `REFERENCED_ATTACHMENT_NOT_FOUND`--Referenced attachment "{filename}" wasn't found in message attachments--### `REPORT_OUTCOME_INVALID`--An actioned resolution needs an outcome other than no violation. A duplicate needs the report it repeats and takes no outcome. A no violation resolution takes no other outcome-### `SEARCH_FILTER_NEEDS_MEMBERSHIP`--Join this community to search by person or mention--### `SESSION_TIMEOUT`--Session timed out--### `SETUP_TOKEN_INVALID`--That setup token is not correct. Check the token and try again.--### `SETUP_TOKEN_REQUIRED`--This instance is not set up yet. Finish setup in a web browser with the setup token before creating accounts.--### `SMTP_HOST_REQUIRED`--Enter an SMTP server before turning on email delivery.--### `SNOWFLAKE_OUT_OF_RANGE`--Invalid snowflake--### `SSO_ACCOUNT_LINKED_TO_ANOTHER_IDENTITY`--This account is already linked to a different SSO identity--### `SSO_EMAIL_NOT_VERIFIED`--Your SSO provider has not verified your email address--### `SSO_IDENTITY_LINKED_TO_ANOTHER_ACCOUNT`--This SSO identity is already linked to a different account--### `SSO_IDENTITY_MISMATCH`--SSO identity mismatch between id_token and userinfo--### `SSO_MISCONFIGURED`--SSO is misconfigured--### `SSO_PROVIDER_DID_NOT_RETURN_EMAIL`--Your SSO provider didn't return an email address--### `SSO_TEST_CODE_MISSING_EMAIL`--SSO test code is missing the email payload--### `SSO_UNABLE_TO_ALLOCATE_DISCRIMINATOR`--We couldn't allocate a discriminator for your SSO account--### `STRING_LENGTH_EXACT`--String must be exactly {length, plural, one {# character} other {# characters}}--### `STRING_LENGTH_INVALID`--String length must be between {min} and {max} characters--### `SYSTEM_CHANNEL_MUST_BE_IN_GUILD`--System channel must be in this community--### `SYSTEM_CHANNEL_MUST_BE_TEXT`--System channel must be a text channel--### `TAG_ALREADY_TAKEN`--This tag is already taken--### `TAG_STYLE_REQUIRES_EMAIL_SIGN_IN`--Tags are only available when people sign in with email--### `THIS_VANITY_URL_IS_ALREADY_TAKEN`--This vanity URL is already taken--### `TICKET_ALREADY_COMPLETED`--This ticket has already been completed--### `TIMEOUT_CANNOT_EXCEED_365_DAYS`--Timeout can't be longer than {maxDays, plural, one {# day} other {# days}} from now--### `TOO_LARGE`--Synced preferences exceed {max_bytes} bytes--### `TOO_MANY_EMBEDS`--Too many embeds--### `TOO_MANY_FILES`--Too many files--### `TOO_MANY_USERS_WITH_THIS_USERNAME`--There are too many users with this username--### `TOO_MANY_USERS_WITH_USERNAME_TRY_DIFFERENT`--There are too many users with this username--### `TOTP_NOT_ENABLED`--Two-factor authentication using an authenticator app isn't enabled for this account--### `UNCLAIMED_ACCOUNTS_CAN_ONLY_SET_EMAIL_VIA_TOKEN`--Claim your account before changing your profile. An unclaimed account gets this when it changes anything except the details needed to claim it, and the message says which step comes first, based on `need`--### `UNRESOLVED_ATTACHMENT_URL`--Unresolved `attachment://` URL detected--### `UPLOADED_ATTACHMENT_NOT_FOUND`--Uploaded attachment {filename} wasn't found--### `URL_LENGTH_INVALID`--URL must be between {min} and {max} characters--### `URL_MUST_USE_HTTPS`--URL must start with https://--### `URL_NOT_PUBLICLY_ROUTABLE`--URL must resolve to a publicly routable address--### `USERNAME_ALREADY_TAKEN`--This username is already taken--### `USERNAME_CANNOT_CONTAIN_RESERVED_TERMS`--Username can't contain "fluxer" or "system message"--### `USERNAME_CHANGED_TOO_MANY_TIMES`--You've changed your username too often recently--### `USERNAME_INVALID_CHARACTERS`--Username can only contain Latin letters (a-z, A-Z), numbers (0-9), and underscores (_)--### `USERNAME_LENGTH_INVALID`--Username must be between {min} and {max} characters--### `USERNAME_RESERVED_VALUE`--Username can't be "everyone" or "here"--### `USER_DOES_NOT_HAVE_AN_EMAIL_ADDRESS`--This user doesn't have an email address--### `USER_IS_NOT_BANNED`--This user isn't banned--### `USER_MUST_BE_A_BOT_TO_BE_MARKED_AS_A_SYSTEM_USER`--User must be a bot to be marked as a system user--### `USER_NOT_IN_CHANNEL`--This user isn't in the channel--### `VALUE_MUST_BE_INTEGER_IN_RANGE`--The value for `{name}` must be an integer between {minValue} and {maxValue}--### `VANITY_URL_CODE_ALREADY_TAKEN`--Vanity URL code is already taken--### `VANITY_URL_CODE_CANNOT_CONTAIN_FLUXER`--Vanity URL code can't contain "fluxer"--### `VANITY_URL_CODE_LENGTH_INVALID`--Vanity URL code must be between {min} and {max} characters--### `VANITY_URL_INVALID_CHARACTERS`--Vanity URL can only contain lowercase letters (a-z), digits (0-9), and hyphens (-)--### `VANITY_URL_REQUIRES_FEATURE`--Vanity URL requires VANITY_URL feature--### `VERIFICATION_BASIS_REQUIRES_EMAIL_DELIVERY`--Accounts can only be verified by a confirmed email while email delivery is on--### `VERIFICATION_CODE_EXPIRED`--Verification code has expired--### `VERIFICATION_CODE_NOT_ISSUED`--No verification code has been issued--### `VISIONARY_REQUIRED_FOR_DISCRIMINATOR`--You must be on the Visionary lifetime plan to use that discriminator--### `VOICE_ACTIVITY_SHARING_ON_COOLDOWN`--You can only update your voice activity sharing default once every 24 hours--### `VOICE_CHANNELS_CANNOT_BE_ABOVE_TEXT_CHANNELS`--Voice channels can't be positioned above text channels within the same category--### `VOICE_MESSAGES_ATTACHMENT_DURATION_REQUIRED`--Voice message attachments must specify a duration--### `VOICE_MESSAGES_ATTACHMENT_MUST_BE_AUDIO`--Voice message attachments must be audio files--### `VOICE_MESSAGES_ATTACHMENT_WAVEFORM_REQUIRED`--Voice message attachments must include waveform data--### `VOICE_MESSAGES_CANNOT_HAVE_CONTENT`--Voice messages can't have text content--### `VOICE_MESSAGES_CANNOT_HAVE_EMBEDS`--Voice messages can't have embeds--### `VOICE_MESSAGES_CANNOT_HAVE_FAVORITE_MEMES`--Voice messages can't have saved media--### `VOICE_MESSAGES_CANNOT_HAVE_STICKERS`--Voice messages can't have stickers--### `VOICE_MESSAGES_DURATION_EXCEEDS_LIMIT`--Voice message duration can't exceed {maxDuration, plural, one {# second} other {# seconds}}--### `VOICE_MESSAGES_REQUIRE_SINGLE_ATTACHMENT`--Voice messages must contain exactly one attachment--### `WEBHOOK_NAME_LENGTH_INVALID`--Webhook name must be between {min} and {max} characters---## Localisation--Messages use the account's locale or the request's `Accept-Language` header, with an English fallback. Early rejections such as IP bans can use the header rather than the account locale. See [Locales](/topics/locales/).--The `code` field is never translated. Validation entries without a code have an English message.+`path` joins field names and array indexes with dots, as in `embeds.0.title`. A `path` of `root` means the error is about the whole request.++On [Modify current user settings](/http-api/users/settings/#modify-current-user-settings), the trusted domain, age restriction and synced preferences checks return 400 `VALIDATION_ERROR` with the same `errors` shape. Other field failures there return `INVALID_FORM_BODY`.++## Extra fields++This table has the most common extra fields. Any other extra fields are listed on the page for the endpoint that returns them.++| Field | Meaning |+| --- | --- |+| `retry_after`, `global` | On `RATE_LIMITED`, `SLOWMODE_RATE_LIMITED` and other cooldowns, the seconds to wait. `global` is only on `RATE_LIMITED` |+| `required_scope` | On `MISSING_OAUTH_SCOPE`, the OAuth2 scope the token is missing |+| `has_mfa`, `methods` | On `SUDO_MODE_REQUIRED`, the proofs the account can give for [sudo mode](/http-api/users/mfa/#sudo-mode) |+| `captcha_provider`, `altcha_challenge` | On `CAPTCHA_REQUIRED` and `INVALID_CAPTCHA`, the challenge to solve, as described in [CAPTCHA handling](/topics/captcha/) |+| `step_index` | On `INVALID_REPORT_FLOW_ANSWERS`, the index of the first [report flow step](/http-api/reports/#report-flow-step-object) whose answer isn't valid |+| `ticket`, `email`, `resend_available_in` | On `IP_AUTHORIZATION_REQUIRED`, the ticket for [authorizing a new IP address](/http-api/authentication/#log-in-with-a-password), and `ip_authorization_required` is `true` |+| `action`, `tier`, `need` | On `ACCOUNT_VERIFICATION_REQUIRED`, what was refused and which step is missing, as described in [account tiers](/http-api/users/#account-tiers) |+| `ban_kind`, `expires_at`, `reason` | On `GLOBAL_IP_BANNED` and `GLOBAL_IP_TEMPORARILY_BANNED`, details of the block, listed in full under [network block response](/http-api/authentication/#network-block-response) |+| `notice` | On `ACCOUNT_SUSPENDED_TEMPORARILY` and `ACCOUNT_SUSPENDED_PERMANENTLY`, the [enforcement notice](/http-api/authentication/#enforcement-notice-object) for the account |++## API error codes++These are the values of the top-level `code`, and the [OpenAPI document](/http-api/instance/#get-openapi-document) lists them as the `APIErrorCode` schema. The Message column shows the English text, with values to fill in shown in braces. The `message` you get back has those values filled in and can have an extra sentence at the end. Some messages change with the reason, and the table shows the general one.++| Code | Message |+| --- | --- |+| `ACCESS_DENIED` | You don't have access to this resource or feature |+| `ACCOUNT_ALREADY_CLAIMED` | This account is already set up to sign in from other devices |+| `ACCOUNT_BELOW_MINIMUM_AGE` | You aren't old enough to have an account here |+| `ACCOUNT_IDENTITY_LOCKED` | The sign-in method is already set and can't be changed |+| `ACCOUNT_LIMITED` | Messaging is paused on your account |+| `ACCOUNT_SUSPENDED_PERMANENTLY` | This account has been permanently suspended |+| `ACCOUNT_SUSPENDED_TEMPORARILY` | This account has been temporarily suspended |+| `ACCOUNT_TOO_NEW_FOR_GUILD` | Your account is too new to send messages in this community |+| `ACCOUNT_VERIFICATION_REQUIRED` | Claim your account to do this |+| `ACLS_MUST_BE_NON_EMPTY` | ACLs must be non-empty |+| `ADMIN_API_KEY_NOT_FOUND` | Admin API key wasn't found |+| `ALREADY_FRIENDS` | You're already friends with this user |+| `ANNOUNCEMENT_CHANNEL_REQUIRED` | This action is only available in announcement channels |+| `BAD_GATEWAY` | Bad gateway |+| `BAD_REQUEST` | Bad request |+| `BLUESKY_OAUTH_AUTHORIZATION_FAILED` | We couldn't resolve that Bluesky handle |+| `BLUESKY_OAUTH_NOT_ENABLED` | Bluesky connections are not enabled on this instance |+| `BOTS_CANNOT_CREATE_GUILDS` | Bots can't create communities |+| `BOTS_CANNOT_SEND_FRIEND_REQUESTS` | Bots can't send friend requests |+| `BOT_ALREADY_IN_GUILD` | This bot is already in the community |+| `BOT_IS_PRIVATE` | This bot is private |+| `BOT_USER_AUTH_ENDPOINT_ACCESS_DENIED` | Bot users can't use auth endpoints |+| `BOT_USER_AUTH_SESSION_CREATION_DENIED` | Bot users can't create auth sessions |+| `BOT_USER_GENERATION_FAILED` | Bot user generation failed |+| `BOT_USER_NOT_FOUND` | Bot user wasn't found |+| `CALL_ALREADY_EXISTS` | A call is already in progress in this channel |+| `CANNOT_BLOCK_SYSTEM_USER` | You can't block the system user |+| `CANNOT_EDIT_OTHER_USER_MESSAGE` | You can't edit another user's message |+| `CANNOT_EXECUTE_ON_DM` | This action can't be performed in a DM |+| `CANNOT_MODIFY_SYSTEM_WEBHOOK` | You can't edit system messages |+| `CANNOT_REDEEM_PLUTONIUM_WITH_VISIONARY` | You already have lifetime {premium_tier_name} |+| `CANNOT_REPORT_GUILD` | You can't report this community |+| `CANNOT_REPORT_OWN_GUILD` | You can't report your own community |+| `CANNOT_REPORT_OWN_MESSAGE` | You can't report your own message |+| `CANNOT_REPORT_YOURSELF` | You can't report yourself |+| `CANNOT_SEND_EMPTY_MESSAGE` | You can't send an empty message |+| `CANNOT_SEND_FRIEND_REQUEST_TO_BLOCKED_USER` | You can't send a friend request to a blocked user |+| `CANNOT_SEND_FRIEND_REQUEST_TO_SELF` | You can't send a friend request to yourself |+| `CANNOT_SEND_MESSAGES_IN_NON_TEXT_CHANNEL` | You can't send messages in a non-text channel |+| `CANNOT_SEND_MESSAGES_TO_USER` | You can't send messages to this user |+| `CANNOT_TRANSFER_OWNERSHIP_TO_BOT` | Community ownership can't be transferred to a bot |+| `CAPTCHA_REQUIRED` | Verification required |+| `CHANNEL_ALREADY_FOLLOWED` | This channel already receives updates from that announcement channel |+| `CHANNEL_HAS_FOLLOWED_CHANNELS` | Remove the followed channels posting here before converting it to an announcement channel |+| `CHANNEL_HAS_THREADS` | Channels with threads can't be converted to announcement channels |+| `CHANNEL_TYPE_CONVERSION_NOT_SUPPORTED` | Only text and announcement channels can be converted into each other |+| `COMMUNICATION_DISABLED` | Communication is disabled |+| `CONFLICT` | Conflict |+| `CONNECTION_ALREADY_EXISTS` | A connection of this type with this identifier already exists |+| `CONNECTION_INITIATION_TOKEN_INVALID` | The connection initiation token is invalid or has expired |+| `CONNECTION_INVALID_TYPE` | The connection type is not supported |+| `CONNECTION_LIMIT_REACHED` | You've reached the maximum number of connections ({limit}) |+| `CONNECTION_NOT_FOUND` | Unknown connection |+| `CONNECTION_VERIFICATION_FAILED` | Connection verification failed |+| `CONTENT_BLOCKED` | This content was blocked by safety systems |+| `DATE_OF_BIRTH_ALREADY_SET` | Your date of birth is already set |+| `DATE_OF_BIRTH_REQUIRED` | Enter your date of birth to continue |+| `DELETION_FAILED` | We couldn't delete the resource |+| `DIRECT_MESSAGES_DISABLED` | Direct messages are disabled on this instance |+| `DIRECT_MESSAGE_EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `DISCOVERY_ALREADY_APPLIED` | This community has already applied to be listed in Explore |+| `DISCOVERY_APPLICATION_ALREADY_REVIEWED` | This application to Explore has already been reviewed |+| `DISCOVERY_APPLICATION_NOT_FOUND` | The application to Explore wasn't found |+| `DISCOVERY_DISABLED` | Explore isn't available on this instance |+| `DISCOVERY_INSUFFICIENT_MEMBERS` | This community doesn't have enough members to be listed in Explore |+| `DISCOVERY_NOT_DISCOVERABLE` | This community isn't listed in Explore |+| `DISCRIMINATOR_REQUIRED` | Discriminator is required |+| `EMAIL_CODES_UNAVAILABLE` | This instance can't send email codes |+| `EMAIL_CODE_RESEND_COOLDOWN` | Wait a moment before asking for another code |+| `EMAIL_DELIVERY_OFF` | This instance doesn't send email |+| `EMAIL_SERVICE_NOT_TESTABLE` | Email service is temporarily unavailable |+| `EMAIL_UNAVAILABLE_ON_INSTANCE` | This instance doesn't use email |+| `EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `ENFORCEMENT_ACCOUNT_CLOSED` | This account is closed, so it can't be suspended |+| `ENFORCEMENT_DECISION_ENDED` | This decision has already ended |+| `ENFORCEMENT_DECISION_OWNS_STATE` | An enforcement decision owns this restriction |+| `ENFORCEMENT_DECISION_REPLACED` | A later decision replaced this one, so it can no longer be ended |+| `ENFORCEMENT_DELETION_STARTED` | The deletion of this account has already started, so the decision can no longer be ended |+| `EXPLICIT_CONTENT_CANNOT_BE_SENT` | Explicit content can't be sent |+| `FEATURE_NOT_AVAILABLE_SELF_HOSTED` | This feature isn't available on self-hosted instances |+| `FEATURE_TEMPORARILY_DISABLED` | This feature is temporarily disabled |+| `FILE_SIZE_TOO_LARGE` | File size is too large |+| `FOLLOW_TARGET_CONTENT_WARNING_REQUIRED` | Updates from a channel with a content warning can only go to a channel with a content warning or an age restriction |+| `FOLLOW_TARGET_NOT_AGE_RESTRICTED` | Updates from an age-restricted channel can only go to an age-restricted channel |+| `FORBIDDEN` | Forbidden |+| `FORUM_TAG_NAMES_MUST_BE_UNIQUE` | Tag names must be unique |+| `FORUM_TAG_REQUIRED` | A tag is required to create a post in this channel |+| `FRIENDS_DISABLED` | Friend requests are disabled on this instance |+| `FRIEND_REQUEST_BLOCKED` | User does not accept friend requests at this time |+| `FRIEND_REQUEST_EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `GATEWAY_TIMEOUT` | Gateway timeout |+| `GENERAL_ERROR` | Something went wrong |+| `GIFT_CODE_ALREADY_REDEEMED` | Gift code is already redeemed |+| `GLOBAL_IP_BANNED` | {product_name} blocked access from this network |+| `GLOBAL_IP_TEMPORARILY_BANNED` | {product_name} blocked access from this network |+| `GONE` | Gone |+| `GROUP_DM_MATURE_CONTENT_INELIGIBLE` | Not everyone in this group is eligible for mature content |+| `GROUP_DM_RECIPIENTS_NOT_ADDABLE` | One or more selected users can't be added to this group DM |+| `GUILD_CREATION_EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `GUILD_CREATION_PERMISSION_REQUIRED` | You don't have permission to create communities on this instance |+| `GUILD_EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `GUILD_TEMPLATE_INVALID` | The community template data is invalid or malformed |+| `GUILD_VERIFICATION_REQUIRED` | Claim your account to talk in this community |+| `GUILD_VISITS_DISABLED` | This community asks people to join before previewing it |+| `GUILD_VISIT_AGE_RESTRICTED` | This community is for adults only |+| `GUILD_VISIT_NOT_FOUND` | You're not previewing this community anymore |+| `HANDOFF_CODE_EXPIRED` | Handoff code expired |+| `HARVEST_EXPIRED` | Your data export request has expired |+| `HARVEST_FAILED` | Your data export request failed |+| `HARVEST_NOT_READY` | Your data export is still being prepared |+| `HIDE_MEDIA_DOWNLOAD_OPTION_MEDIA_ONLY` | Hiding media download options is only available in media channels |+| `INSTANCE_POLICY_TRANSITION_NOT_ALLOWED` | This instance policy change is not allowed |+| `INSTANT_ACCOUNTS_DISABLED` | Creating an account from just a display name isn't available right now |+| `INTERNAL_SERVER_ERROR` | Internal server error |+| `INVALID_ACCOUNT_HANDOFF_NONCE` | This sign-up link isn't valid |+| `INVALID_ACLS_FORMAT` | Invalid ACL format |+| `INVALID_API_ORIGIN` | Invalid API origin |+| `INVALID_AUTH_TOKEN` | Invalid or expired authorization token |+| `INVALID_BOT_FLAG` | Invalid bot flag |+| `INVALID_CAPTCHA` | Verification failed |+| `INVALID_CHANNEL_TYPE` | Invalid channel type |+| `INVALID_CHANNEL_TYPE_FOR_CALL` | Calls can only be made in direct messages or group DMs |+| `INVALID_DSA_REPORT_TARGET` | Invalid DSA report target |+| `INVALID_DSA_TICKET` | Invalid DSA ticket |+| `INVALID_DSA_VERIFICATION_CODE` | Invalid DSA verification code |+| `INVALID_FLAGS_FORMAT` | Invalid flags format |+| `INVALID_FOLLOW_TARGET_CHANNEL` | Followed channels can only post into text channels |+| `INVALID_FORM_BODY` | Invalid form body |+| `INVALID_HANDOFF_CODE` | Invalid handoff code |+| `INVALID_ORIGIN_HANDOFF_NONCE` | This sign-in transfer doesn't match the one you started |+| `INVALID_PERMISSIONS_INTEGER` | Permissions must be a valid integer |+| `INVALID_PERMISSIONS_NEGATIVE` | Permissions must be non-negative |+| `INVALID_REPORT_FLOW_ANSWERS` | These answers don't match the report form |+| `INVALID_REQUEST` | Invalid request |+| `INVALID_SIGN_IN_CODE` | That code isn't right |+| `INVALID_STREAM_KEY_FORMAT` | Invalid stream key format |+| `INVALID_STREAM_THUMBNAIL_PAYLOAD` | Invalid stream thumbnail payload |+| `INVALID_SYSTEM_FLAG` | Invalid system flag |+| `INVALID_THREAD_NOTIFICATION_SETTINGS` | Invalid thread notification settings |+| `INVALID_TIMESTAMP` | Invalid timestamp |+| `INVALID_TOKEN` | Invalid or expired authorization token |+| `INVALID_WEBAUTHN_AUTHENTICATION_COUNTER` | Invalid WebAuthn authentication counter |+| `INVALID_WEBAUTHN_CREDENTIAL` | Failed to verify WebAuthn credential |+| `INVALID_WEBAUTHN_CREDENTIAL_COUNTER` | Invalid WebAuthn credential counter |+| `INVALID_WEBAUTHN_PUBLIC_KEY_FORMAT` | Invalid WebAuthn public key format |+| `INVITES_DISABLED` | Invites are disabled |+| `IP_AUTHORIZATION_REQUIRED` | IP authorization is required |+| `IP_AUTHORIZATION_RESEND_COOLDOWN` | IP authorization resend is on cooldown |+| `IP_AUTHORIZATION_RESEND_LIMIT_EXCEEDED` | IP authorization resend limit exceeded |+| `IP_BAN_DECLINED` | This IP address cannot be added to the blocklist |+| `IP_BAN_LINKED_TO_DECISION` | This network block belongs to an enforcement decision |+| `MAX_ACTIVE_THREADS` | This community has reached its active thread limit of {count} |+| `MAX_APPLICATIONS` | You've reached the maximum of {limit} applications |+| `MAX_BOOKMARKS` | You've reached the maximum of {count} bookmarks |+| `MAX_CATEGORY_CHANNELS` | You've reached the maximum of {count} category channels |+| `MAX_EMOJIS` | You've reached the maximum of {count} emojis |+| `MAX_FAVORITE_MEMES` | You've reached the maximum of {count} saved media items |+| `MAX_FORUM_TAGS` | This channel has reached its tag limit of {count} |+| `MAX_FRIENDS` | You've reached the maximum of {count} friends |+| `MAX_GROUP_DMS` | You've reached the maximum of {count} group DMs |+| `MAX_GROUP_DM_RECIPIENTS` | You've reached the maximum of {count} group DM recipients |+| `MAX_GUILDS` | You've reached the maximum of {count} communities |+| `MAX_GUILD_CHANNELS` | You've reached the maximum of {count} community channels |+| `MAX_GUILD_MEMBERS` | You've reached the maximum of {count} community members |+| `MAX_GUILD_ROLES` | You've reached the maximum of {count} community roles |+| `MAX_INVITES` | You've reached the maximum of {count} invites |+| `MAX_PINNED_THREADS_IN_FORUM` | This channel has reached its pinned post limit of {count} |+| `MAX_REACTIONS` | You've reached the maximum of {count} reactions |+| `MAX_STICKERS` | You've reached the maximum of {count} stickers |+| `MAX_THREAD_MEMBERS` | This thread has reached its member limit of {count} |+| `MAX_WEBHOOKS_PER_CHANNEL` | You've reached the maximum of {count} webhooks per channel |+| `MAX_WEBHOOKS_PER_GUILD` | You've reached the maximum of {count} webhooks per community |+| `MEDIA_METADATA_ERROR` | Media metadata error |+| `MESSAGE_ALREADY_CROSSPOSTED` | This message has already been published |+| `MESSAGE_CROSSPOST_RATE_LIMITED` | This channel has reached its publishing limit |+| `MESSAGE_NOT_CROSSPOSTABLE` | This message cannot be published |+| `METHOD_NOT_ALLOWED` | Method not allowed |+| `MFA_EMAIL_VERIFICATION_REQUIRED` | Confirm your email address to use two-factor authentication or passkeys |+| `MISSING_ACCESS` | You don't have access to this resource or feature |+| `MISSING_ACL` | Missing ACL |+| `MISSING_AUTHORIZATION` | Missing or invalid authorization header |+| `MISSING_OAUTH_SCOPE` | The requested scope isn't supported or you don't have permission to request it |+| `MISSING_PERMISSIONS` | You don't have the permissions required to perform this action |+| `NEW_CONVERSATIONS_LIMITED` | You can't start new conversations right now |+| `NOT_A_BOT_APPLICATION` | This application isn't a bot |+| `NOT_FOUND` | Not found |+| `NOT_FRIENDS_WITH_USER` | You're not friends with this user |+| `NOT_IMPLEMENTED` | Not implemented |+| `NO_ACTIVE_CALL` | No active call |+| `NO_ACTIVE_SUBSCRIPTION` | No active subscription |+| `NO_PASSKEYS_REGISTERED` | No passkeys are registered |+| `NO_PENDING_DELETION` | Invalid request |+| `NO_TAGS_AVAILABLE_TO_NON_MODERATORS` | A tag is required, but only moderators can apply the tags in this channel |+| `NO_USERS_WITH_FLUXERTAG_EXIST` | There are too many users with this username |+| `NSFW_CONTENT_AGE_RESTRICTED` | NSFW content is age restricted |+| `PASSKEY_AUTHENTICATION_FAILED` | Passkey authentication failed |+| `PASSWORD_REQUIRED_TO_CLAIM` | Set a password to keep this account |+| `PASSWORD_SIGN_IN_REQUIRED` | Sign in to this account with its password |+| `PREMIUM_PURCHASE_BLOCKED` | No active subscription |+| `PREVIEW_MUST_BE_JPEG` | Preview must be JPEG |+| `PROCESSING_FAILED` | We couldn't process the request |+| `PROFILE_EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `PUBLISHED_MESSAGE_EDIT_RATE_LIMITED` | This published message has reached its editing limit |+| `PURCHASE_EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `PURCHASE_RECEIPT_EMAIL_REQUIRED` | Purchases need an email address to send receipts to, and this account doesn't have one |+| `RATE_LIMITED` | You're being rate limited |+| `REACTION_EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `REGISTRATION_CLOSED` | Registration is closed on this instance |+| `REGISTRATION_CREDENTIALS_REQUIRED` | This instance reviews new accounts |+| `REGISTRATION_CREDENTIAL_REQUIRED` | Choose a password to sign up |+| `REGISTRATION_PENDING_APPROVAL` | This registration is waiting for admin approval |+| `REGISTRATION_REJECTED` | This registration request was rejected |+| `REGISTRATION_URL_INVALID` | This registration link is invalid or has expired |+| `REPORT_ALREADY_RESOLVED` | Report already resolved |+| `REPORT_BANNED` | You've been banned from submitting reports |+| `REPORT_EMAIL_VERIFICATION_REQUIRED` | Email verification is required for this action |+| `REPORT_FLOW_OUTDATED` | The report form changed while you were filling it in |+| `REPORT_UNDER_LEGAL_HOLD` | This report is under a legal hold and can't be deleted |+| `RESOURCE_LOCKED` | This resource is being modified |+| `RESPONSE_VALIDATION_ERROR` | Response validation failed: {errors} |+| `SEARCH_INDEX_NOT_READY` | The search index isn't ready yet |+| `SERVICE_UNAVAILABLE` | Service unavailable |+| `SESSION_TOKEN_MISMATCH` | Session token mismatch |+| `SIGN_IN_CODE_EXPIRED` | This code has expired |+| `SINGLE_COMMUNITY_CANNOT_CREATE_GUILDS` | This instance is a single community, so additional communities cannot be created |+| `SINGLE_COMMUNITY_CANNOT_DELETE` | The community for this instance cannot be deleted |+| `SINGLE_COMMUNITY_CANNOT_LEAVE` | You cannot leave the community for this instance |+| `SLOWMODE_RATE_LIMITED` | Slowmode rate limited |+| `SSO_REQUIRED` | This instance requires single sign-on |+| `STREAM_KEY_CHANNEL_MISMATCH` | Stream key channel mismatch |+| `STREAM_KEY_SCOPE_MISMATCH` | Stream key scope mismatch |+| `STRIPE_ERROR` | Payment processing encountered an error |+| `STRIPE_GIFT_REDEMPTION_IN_PROGRESS` | Gift code redemption is in progress |+| `STRIPE_INVALID_PRODUCT` | Invalid product selection |+| `STRIPE_INVALID_PRODUCT_CONFIGURATION` | Invalid product configuration |+| `STRIPE_NO_ACTIVE_SUBSCRIPTION` | No active subscription found |+| `STRIPE_NO_PURCHASE_HISTORY` | No purchase history found |+| `STRIPE_NO_SUBSCRIPTION` | No subscription found |+| `STRIPE_PAYMENT_NOT_AVAILABLE` | Payment processing is temporarily unavailable |+| `STRIPE_SUBSCRIPTION_ALREADY_CANCELING` | Subscription is already set to cancel at period end |+| `STRIPE_SUBSCRIPTION_NOT_CANCELING` | Subscription isn't set to cancel |+| `STRIPE_WEBHOOK_NOT_AVAILABLE` | Webhook processing isn't available |+| `STRIPE_WEBHOOK_SIGNATURE_INVALID` | Stripe webhook signature is invalid |+| `STRIPE_WEBHOOK_SIGNATURE_MISSING` | Stripe webhook signature is missing |+| `SUDO_MODE_REQUIRED` | Sudo mode is required |+| `SUDO_SECOND_FACTOR_REQUIRED` | Confirm it's you with your authenticator app, passkey or a backup code |+| `TAG_ALREADY_TAKEN` | This tag is already taken |+| `TEMPORARY_INVITE_REQUIRES_PRESENCE` | Temporary invite requires presence |+| `TEST_HARNESS_DISABLED` | Test harness is disabled |+| `TEST_HARNESS_FORBIDDEN` | Test harness is forbidden |+| `THREAD_ALREADY_CREATED_FOR_MESSAGE` | A thread has already been created for this message |+| `THREAD_ARCHIVED` | This thread is archived |+| `THREAD_LOCKED` | This thread is locked |+| `TWO_FACTOR_REQUIRED` | Two-factor authentication is required |+| `TWO_FA_NOT_ENABLED` | Two-factor authentication isn't enabled |+| `UNAUTHORIZED` | Unauthorized |+| `UNCLAIMED_ACCOUNT_CANNOT_ACCEPT_FRIEND_REQUESTS` | Claim your account to accept friend requests |+| `UNCLAIMED_ACCOUNT_CANNOT_ADD_REACTIONS` | Claim your account to add reactions |+| `UNCLAIMED_ACCOUNT_CANNOT_CREATE_APPLICATIONS` | Claim your account to create applications |+| `UNCLAIMED_ACCOUNT_CANNOT_CREATE_GUILDS` | Claim your account to create communities |+| `UNCLAIMED_ACCOUNT_CANNOT_JOIN_GROUP_DMS` | Claim your account to join group chats |+| `UNCLAIMED_ACCOUNT_CANNOT_JOIN_ONE_ON_ONE_VOICE_CALLS` | Claim your account to start or join calls |+| `UNCLAIMED_ACCOUNT_CANNOT_JOIN_VOICE_CHANNELS` | Claim your account to join voice channels |+| `UNCLAIMED_ACCOUNT_CANNOT_MAKE_PURCHASES` | Claim your account to make purchases |+| `UNCLAIMED_ACCOUNT_CANNOT_SEND_DIRECT_MESSAGES` | Claim your account to send direct messages |+| `UNCLAIMED_ACCOUNT_CANNOT_SEND_FRIEND_REQUESTS` | Claim your account to send friend requests |+| `UNCLAIMED_ACCOUNT_CANNOT_SEND_MESSAGES` | Claim your account to send messages |+| `UNCLAIMED_ACCOUNT_CANNOT_SUBMIT_REPORTS` | Claim your account to submit reports |+| `UNKNOWN_ACCOUNT_HANDOFF` | This sign-up link has expired or was already used |+| `UNKNOWN_APPLICATION` | Unknown application |+| `UNKNOWN_CHANNEL` | Channel wasn't found |+| `UNKNOWN_EMOJI` | Unknown emoji |+| `UNKNOWN_ENFORCEMENT_DECISION` | Unknown enforcement decision |+| `UNKNOWN_FAVORITE_MEME` | Unknown saved media |+| `UNKNOWN_FORUM_TAG` | Tag wasn't found |+| `UNKNOWN_GIFT_CODE` | Unknown gift code |+| `UNKNOWN_GUILD` | Community wasn't found |+| `UNKNOWN_HARVEST` | Unknown data export |+| `UNKNOWN_INVITE` | Invite wasn't found or is no longer valid |+| `UNKNOWN_MEMBER` | Member wasn't found in this community |+| `UNKNOWN_MESSAGE` | Message wasn't found |+| `UNKNOWN_ORIGIN_HANDOFF` | This sign-in transfer has expired or was already used |+| `UNKNOWN_REPORT` | Unknown report |+| `UNKNOWN_ROLE` | Role wasn't found |+| `UNKNOWN_SIGN_IN_TICKET` | This sign-in attempt has expired |+| `UNKNOWN_STICKER` | Unknown sticker |+| `UNKNOWN_THREAD_MEMBER` | Thread member wasn't found |+| `UNKNOWN_USER` | User wasn't found |+| `UNKNOWN_USER_FLAG` | The specified user flag isn't recognized |+| `UNKNOWN_VOICE_REGION` | Unknown voice region |+| `UNKNOWN_VOICE_SERVER` | Unknown voice server |+| `UNKNOWN_WEBAUTHN_CREDENTIAL` | Unknown WebAuthn credential |+| `UNKNOWN_WEBHOOK` | Unknown webhook |+| `UPDATE_FAILED` | We couldn't update the resource |+| `USERNAME_NOT_AVAILABLE` | This username is not available |+| `USERNAME_SIGN_IN_ONLY` | This is only available on instances where people sign in with a username |+| `USER_BANNED_FROM_GUILD` | This user is banned from this community |+| `USER_IP_BANNED_FROM_GUILD` | This user's IP is banned from this community |+| `USER_NOT_IN_VOICE` | This user isn't in voice |+| `USER_OWNS_GUILDS` | This user owns communities |+| `USE_CLAIM_ROUTE` | Add an email address to your account first |+| `VALIDATION_ERROR` | Validation failed |+| `VOICE_CHANNEL_FULL` | Voice channel is full |+| `WEBAUTHN_CREDENTIAL_LIMIT_REACHED` | You've reached the maximum of {count} WebAuthn credentials |+| `WEBHOOK_FORUM_TARGET_CONFLICT` | You can't specify both `thread_id` and `thread_name` |+| `WEBHOOK_FORUM_TARGET_REQUIRED` | Webhooks posting to this channel need a `thread_id` or a `thread_name` |+| `WEBHOOK_SERVICE_FORUM_UNSUPPORTED` | This webhook service can't post to a forum or media channel without a `thread_id` |+| `WEBHOOK_THREAD_NAME_REQUIRES_FORUM` | `thread_name` and `applied_tags` only work in forum and media channels |++## Validation error codes++These are the values of `code` inside `errors`.++| Code | Message |+| --- | --- |+| `ACCENT_COLOR_CHANGED_TOO_MANY_TIMES` | You've changed your accent color too often recently |+| `AFK_CHANNEL_MUST_BE_IN_GUILD` | AFK channel must be in this community |+| `AFK_CHANNEL_MUST_BE_VOICE` | AFK channel must be a voice channel |+| `AGE_RESTRICTED` | This sensitive content filter isn't available for your age group |+| `ALL_CHANNELS_MUST_BELONG_TO_GUILD` | All channels must belong to this community |+| `ANIMATED_AVATARS_REQUIRE_PREMIUM` | Animated avatars require Premium |+| `ANIMATED_GUILD_BANNER_REQUIRES_FEATURE` | Animated community banner requires ANIMATED_BANNER feature |+| `ATTACHMENTS_NOT_ALLOWED_FOR_MESSAGE` | Attachments aren't allowed for this message |+| `ATTACHMENT_ID_NOT_FOUND_IN_MESSAGE` | Attachment with ID {attachmentId} wasn't found in the message |+| `ATTACHMENT_MUST_BE_IMAGE` | Attachment "{filename}" must be an image file (png, jpg, jpeg, webp, or gif) |+| `AVATAR_CHANGED_TOO_MANY_TIMES` | You've changed your avatar too often recently |+| `BANNERS_REQUIRE_PREMIUM` | Banners require Premium |+| `BANNER_CHANGED_TOO_MANY_TIMES` | You've changed your banner too often recently |+| `BASE64_LENGTH_INVALID` | Base64 string length must be between {min} and {maxLength} characters |+| `BIO_CHANGED_TOO_MANY_TIMES` | You've changed your bio too often recently |+| `BOT_DISCRIMINATOR_CANNOT_BE_CHANGED` | Bot discriminator can't be changed |+| `BOT_SEARCH_SCOPE_UNAVAILABLE` | Bots can only search within a single community or channel |+| `CANNOT_ADD_YOURSELF_TO_GROUP_DM` | You can't add yourself to a group DM |+| `CANNOT_DELETE_MORE_THAN_100_MESSAGES` | You can't delete more than {max} messages at once |+| `CANNOT_DM_YOURSELF` | You can't DM yourself |+| `CANNOT_EDIT_ATTACHMENT_METADATA` | Users with MANAGE_MESSAGES can only edit attachment descriptions, not other metadata |+| `CANNOT_LEAVE_GUILD_AS_OWNER` | You can't leave a community as the owner |+| `CANNOT_POSITION_CHANNEL_RELATIVE_TO_ITSELF` | You can't position a channel relative to itself or its descendants |+| `CANNOT_PRELOAD_MORE_THAN_100_CHANNELS` | You can't preload more than {max} channels at once |+| `CANNOT_REFERENCE_ATTACHMENTS_WITHOUT_ATTACHMENTS` | You can't reference attachments when no attachments are provided |+| `CANNOT_REORDER_EVERYONE_ROLE` | You can't reorder the @everyone role |+| `CANNOT_REPLY_TO_SYSTEM_MESSAGE` | You can't reply to a system message |+| `CANNOT_SET_HOIST_FOR_EVERYONE_ROLE` | You can't set hoist position for the @everyone role |+| `CANNOT_SPECIFY_BOTH_BEFORE_AND_AFTER` | You can't specify both `before` and `after` |+| `CAPTCHA_REQUIRED_BY_INSTANT_ACCOUNTS` | Turn off instant accounts before turning off the captcha |+| `CATEGORIES_CANNOT_HAVE_PARENTS` | Categories can't have parents |+| `CATEGORIES_CANNOT_HAVE_PARENT_CHANNEL` | Categories can't have a parent channel |+| `CHANGING_DISCRIMINATOR_REQUIRES_PREMIUM` | Changing your discriminator requires Premium |+| `CHANNEL_DOES_NOT_EXIST` | Channel not found |+| `CHANNEL_ID_IS_REQUIRED` | `channel_id` is required |+| `CHANNEL_MUST_BE_DM_OR_GROUP_DM` | Channel must be a DM or a group DM |+| `CHANNEL_MUST_BE_VOICE` | Channel must be a voice channel |+| `CHANNEL_NOT_FOUND` | Channel not found |+| `COLOR_VALUE_TOO_HIGH` | Color value must not exceed 0xffffff |+| `COLOR_VALUE_TOO_LOW` | Color value must be at least 0x000000 |+| `CONTENT_EXCEEDS_MAX_LENGTH` | Text must not exceed {maxLength} characters |+| `CONTEXT_CHANNEL_OR_GUILD_ID_REQUIRED` | A context channel or community ID is required |+| `CUSTOM_EMOJIS_REQUIRE_PREMIUM_OUTSIDE_SOURCE` | You can't use custom emojis outside their source communities without Premium |+| `CUSTOM_EMOJI_NOT_FOUND` | Custom emoji wasn't found |+| `CUSTOM_STICKERS_IN_DMS_REQUIRE_PREMIUM` | You can't use custom stickers in DMs without Premium |+| `CUSTOM_STICKERS_REQUIRE_PREMIUM_OUTSIDE_SOURCE` | You can't use custom stickers outside their source communities without Premium |+| `CUSTOM_STICKER_NOT_FOUND` | Custom sticker wasn't found |+| `DISCOVERABLE_GUILD_VERIFICATION_LEVEL_TOO_LOW` | Communities listed in Explore must have a verification level of at least Low |+| `DISCRIMINATOR_INVALID_FORMAT` | Discriminator must be {min}–{max} digits |+| `DISCRIMINATOR_NOT_SUPPORTED_ON_INSTANCE` | This instance doesn't use tags |+| `DISCRIMINATOR_OUT_OF_RANGE` | Discriminator must be between {min} and {max} |+| `DUPLICATE_ATTACHMENT_IDS_NOT_ALLOWED` | Duplicate attachment IDs aren't allowed |+| `DUPLICATE_FILE_INDEX` | Duplicate file index: {index} |+| `DUPLICATE_RECIPIENTS_NOT_ALLOWED` | Duplicate recipients aren't allowed |+| `EMAIL_ALREADY_IN_USE` | Email is already in use |+| `EMAIL_DELIVERY_REQUIRES_EMAIL_IDENTITY` | Email delivery only works when people sign in with an email |+| `EMAIL_DOMAIN_NOT_ALLOWED` | This instance only accepts email addresses from certain domains |+| `EMAIL_DOMAIN_NOT_ALLOWED_FOR_SSO` | This email domain isn't allowed for single sign-on |+| `EMAIL_IS_REQUIRED` | Email is required |+| `EMAIL_LENGTH_INVALID` | Email address must be between {min} and {max} characters |+| `EMAIL_MUST_BE_CHANGED_VIA_TOKEN` | Email must be changed via token |+| `EMAIL_TOKEN_EXPIRED` | Email token expired |+| `EMBEDS_EXCEED_MAX_CHARACTERS` | Embeds must not exceed {maxCharacters} characters in total |+| `EMBED_INDEX_OUT_OF_BOUNDS` | Embed index {embedIndex} is out of bounds (message has {embedCount} embeds) |+| `EMBED_SPLASH_REQUIRES_FEATURE` | Embed splash requires INVITE_SPLASH feature |+| `ENFORCEMENT_CONFIRMATIONS_REQUIRED` | Confirm that the evidence is preserved and that any required report is filed |+| `ENFORCEMENT_EVIDENCE_DM_UNREPORTED` | Messages in direct messages can only be used as evidence when a linked report covers that conversation |+| `ENFORCEMENT_EVIDENCE_NOT_ALLOWED` | The messages being removed are saved as evidence, so leave out separate evidence messages |+| `ENFORCEMENT_EVIDENCE_NOT_FOUND` | One of the evidence messages wasn't found |+| `ENFORCEMENT_EVIDENCE_NOT_SUBJECT` | Every evidence message must be from the account or community this decision is about |+| `ENFORCEMENT_EVIDENCE_REQUIRED` | This decision needs at least one evidence message |+| `ENFORCEMENT_FACTS_REQUIRED` | Add an evidence message or a note to the user |+| `ENFORCEMENT_INTERNAL_NOTE_REQUIRED` | Add an internal note in the X-Audit-Log-Reason header |+| `ENFORCEMENT_KIND_NOT_ALLOWED` | This reason can't be used for this action |+| `ENFORCEMENT_LIMIT_END_INVALID` | Only a reports limit has an end date, and it must be within the next 365 days |+| `ENFORCEMENT_LIMIT_NOT_ALLOWED` | This reason can't be used for this limit |+| `ENFORCEMENT_NETWORK_BLOCK_NOT_ALLOWED` | Only a permanent suspension or a closure for a broken rule can block networks |+| `ENFORCEMENT_NETWORK_SHARED` | Other accounts that aren't restricted were last active on this network, so it can't be blocked |+| `ENFORCEMENT_NETWORK_UNKNOWN` | This account hasn't used this network in the last 30 days |+| `ENFORCEMENT_OUTCOME_NOT_ALLOWED` | Only a reversal can end this kind of decision, because there is nothing to lift |+| `ENFORCEMENT_PERMANENT_REQUIRED` | Suspensions for this reason must be permanent |+| `ENFORCEMENT_REPORT_MISMATCH` | Every linked report must exist and be about the account or community this decision is about |+| `ENFORCEMENT_REPORT_REQUIRED` | Link at least one report when the source is a report |+| `ENFORCEMENT_RIGHTS_HOLDER_NOT_ALLOWED` | A rights holder can only be given for copyright decisions |+| `ENFORCEMENT_RIGHTS_HOLDER_REQUIRED` | Copyright decisions need the rights holder or the right concerned |+| `ENFORCEMENT_STATEMENT_NOT_ALLOWED` | Decisions for this reason can't include a note to the user |+| `ENTRANCE_SOUND_DURATION_EXCEEDS_LIMIT` | Entrance sounds can be at most {max_ms, number}ms long |+| `ENTRANCE_SOUND_INVALID_FORMAT` | Entrance sounds must be MP3, OGG, M4A, or WAV audio |+| `ENTRANCE_SOUND_INVALID_SCOPE` | Invalid entrance sound scope |+| `ENTRANCE_SOUND_NAME_LENGTH_INVALID` | Entrance sound names must be between 1 and {max, number} characters |+| `ENTRANCE_SOUND_NOT_FOUND` | Entrance sound not found |+| `ENTRANCE_SOUND_QUOTA_REACHED` | You've reached the limit of {max, number} saved entrance sounds |+| `ENTRANCE_SOUND_SIZE_EXCEEDS_LIMIT` | Entrance sounds can be at most {max_bytes, number} bytes |+| `FAILED_TO_FETCH_SSO_USER_INFO` | We couldn't fetch your SSO user info |+| `FAILED_TO_PARSE_MULTIPART_FORM_DATA` | We couldn't parse the multipart form data |+| `FAILED_TO_PARSE_SSO_USER_INFO` | We couldn't read the response from your SSO provider |+| `FAILED_TO_UPLOAD_IMAGE` | We couldn't upload the image |+| `FAVORITE_MEME_NAME_REQUIRED` | Saved media name is required |+| `FAVORITE_MEME_NOT_FOUND` | Saved media wasn't found |+| `FILENAME_LENGTH_INVALID` | Filename must be between {min} and {max} characters |+| `FILE_INDEX_EXCEEDS_MAXIMUM` | File index {index} exceeds the maximum allowed index of {maxIndex} |+| `FILE_NOT_FOUND` | File not found |+| `FLAG_REQUIRES_ENFORCEMENT_ROUTE` | This flag is part of a restriction |+| `FORWARD_MESSAGES_CANNOT_CONTAIN_CONTENT` | Forwarded messages can't include content, embeds, attachments, or stickers |+| `FORWARD_REFERENCE_REQUIRES_CHANNEL_AND_MESSAGE` | Forward message reference must include `channel_id` and `message_id` |+| `GLOBAL_NAME_CANNOT_CONTAIN_RESERVED_TERMS` | Display name can't contain "system message" |+| `GLOBAL_NAME_LENGTH_INVALID` | Global name must be between {min} and {max} characters |+| `GLOBAL_NAME_RESERVED_VALUE` | Global name can't be "everyone" or "here" |+| `GUILD_BANNER_REQUIRES_FEATURE` | Community banner requires BANNER feature |+| `GUILD_FEATURE_NOT_TOGGLEABLE` | This feature cannot be toggled |+| `GUILD_ID_MUST_MATCH_REFERENCED_MESSAGE` | Community ID must match the community containing the channel the referenced message was fetched from |+| `GUILD_ID_REQUIRED_FOR_SEARCH_INDEX` | Community ID is required for channel message and member search indexes |+| `IDENTIFIER_FIRST_REQUIRES_EMAIL_IDENTITY` | Email-first sign-in only works when people sign in with an email |+| `IMAGE_SIZE_EXCEEDS_LIMIT` | Image size exceeds {maxSize} bytes |+| `INSTANCE_ADDRESS_REQUIRED` | This instance uses usernames |+| `INSTANT_ACCOUNTS_REQUIRE_CAPTCHA` | Turn on the captcha before allowing instant accounts |+| `INTEGER_OUT_OF_INT64_RANGE` | Integer value is out of the valid int64 range |+| `INVALID_ALLOWED_DOMAIN` | "{domain}" isn't a valid domain |+| `INVALID_AUDIT_LOG_REASON` | Invalid audit log reason |+| `INVALID_BASE64_FORMAT` | The provided value is in an invalid format |+| `INVALID_CHANNEL_ID` | Invalid channel ID: {channelId} |+| `INVALID_CODE` | Invalid code |+| `INVALID_DATE_OF_BIRTH_FORMAT` | Enter your real date of birth |+| `INVALID_EMAIL_ADDRESS` | Invalid email address format |+| `INVALID_EMAIL_FORMAT` | Invalid email address format |+| `INVALID_EMAIL_LOCAL_PART` | Invalid email address format |+| `INVALID_EMAIL_OR_PASSWORD` | Check your email and password |+| `INVALID_EMAIL_TOKEN` | Invalid email token |+| `INVALID_FILE_FIELD_NAME` | Invalid file field name: {key} |+| `INVALID_FORMAT` | The provided value is in an invalid format |+| `INVALID_IMAGE_FORMAT` | Invalid image format |+| `INVALID_INTEGER_FORMAT` | Invalid integer format |+| `INVALID_ISO_TIMESTAMP` | Must be a valid ISO timestamp |+| `INVALID_JSON_IN_PAYLOAD_JSON` | Invalid JSON in `payload_json` |+| `INVALID_LOGIN_OR_PASSWORD` | Invalid username or password |+| `INVALID_MESSAGE_DATA` | Invalid message data |+| `INVALID_MFA_CODE` | Invalid MFA code |+| `INVALID_OR_EXPIRED_AUTHORIZATION_TICKET` | Invalid or expired authorization ticket |+| `INVALID_OR_EXPIRED_AUTHORIZATION_TOKEN` | Invalid or expired authorization token |+| `INVALID_OR_EXPIRED_RESET_TOKEN` | Invalid or expired password reset token |+| `INVALID_OR_EXPIRED_REVERT_TOKEN` | Invalid or expired revert token |+| `INVALID_OR_EXPIRED_SSO_STATE` | Invalid or expired SSO state |+| `INVALID_OR_EXPIRED_TICKET` | Invalid or expired ticket |+| `INVALID_OR_EXPIRED_VERIFICATION_TOKEN` | Invalid or expired verification token |+| `INVALID_OR_RESTRICTED_RTC_REGION` | Invalid or restricted RTC region: {region} |+| `INVALID_PARENT_CHANNEL` | Invalid parent channel |+| `INVALID_PASSWORD` | Check your email and password |+| `INVALID_PROOF_TOKEN` | Invalid proof token |+| `INVALID_RECOVERY_KEY` | Invalid username or recovery key |+| `INVALID_ROLE_ID` | Invalid role ID: {roleId} |+| `INVALID_RTC_REGION` | Invalid RTC region: {region} |+| `INVALID_SNOWFLAKE` | Invalid snowflake |+| `INVALID_SNOWFLAKE_FORMAT` | Invalid snowflake |+| `INVALID_SSO_AUTHORIZATION_CODE` | Invalid SSO authorization code |+| `INVALID_SSO_TOKEN` | Invalid SSO token |+| `INVALID_TIMEOUT_VALUE` | Invalid timeout value |+| `INVALID_TIMEZONE_IDENTIFIER` | Invalid time zone identifier |+| `INVALID_TRUSTED_DOMAINS` | The wildcard (*) can't be combined with specific domains |+| `INVALID_URL_FORMAT` | Invalid URL format |+| `INVALID_URL_OR_ATTACHMENT_FORMAT` | Invalid URL format or attachment reference |+| `INVALID_VERIFICATION_CODE` | Invalid verification code |+| `INVITE_SPLASH_REQUIRES_FEATURE` | Invite splash requires INVITE_SPLASH feature |+| `MAX_FAVORITE_MEME_TAGS_EXCEEDED` | You can only add up to {limit} tags per saved media item |+| `MEDIA_ALREADY_IN_FAVORITE_MEMES` | This media is already in your saved media |+| `MESSAGES_ARRAY_REQUIRED_AND_NOT_EMPTY` | `messages` array is required and must not be empty |+| `MESSAGES_WITH_SNAPSHOTS_CANNOT_BE_EDITED` | Messages with snapshots can't be edited |+| `MESSAGE_HISTORY_CUTOFF_BEFORE_GUILD_CREATION` | Message history cutoff can't be before the community was created |+| `MESSAGE_HISTORY_CUTOFF_IN_FUTURE` | Message history cutoff can't be in the future |+| `MESSAGE_IDS_CANNOT_BE_EMPTY` | `message_ids` can't be empty |+| `MODERATION_BASIS_REQUIRED` | Give a basis to delete the messages |+| `MULTIPLE_FILES_FOR_INDEX_NOT_ALLOWED` | Multiple files for index {index} aren't allowed |+| `MUST_AGREE_TO_TOS_AND_PRIVACY_POLICY` | You need to accept the terms of service to create an account |+| `MUST_BE_MINIMUM_AGE` | You must be at least {minAge} years old to create an account |+| `MUST_ENABLE_2FA_BEFORE_REQUIRING_FOR_MODS` | You must enable 2FA on your account before requiring it for moderators |+| `MUST_HAVE_EMAIL_TO_CHANGE_IT` | You must have an email address to change it |+| `MUST_START_SESSION_BEFORE_SENDING` | You must start a session before sending messages |+| `NAME_EMPTY_AFTER_NORMALIZATION` | Name can't be empty after normalization |+| `NEW_EMAIL_MUST_BE_DIFFERENT` | New email must be different from your current email |+| `NOT_A_VALID_UNICODE_EMOJI` | Not a valid Unicode emoji |+| `NO_FILE_FOR_ATTACHMENT` | No file was uploaded for attachment with ID {attachmentId} |+| `NO_FILE_FOR_ATTACHMENT_METADATA` | No file was uploaded for attachment metadata with ID {attachmentId} |+| `NO_NEW_EMAIL_REQUESTED` | No new email was requested |+| `NO_ORIGINAL_EMAIL_ON_RECORD` | No original email is on record |+| `NO_UPLOADED_PARTS_TO_FINALIZE` | No uploaded parts are available to finalize |+| `NO_VALID_MEDIA_IN_MESSAGE` | No valid media was found in the message |+| `ORIGINAL_EMAIL_ALREADY_VERIFIED` | Original email is already verified |+| `ORIGINAL_EMAIL_MUST_BE_VERIFIED_FIRST` | Original email must be verified first |+| `ORIGINAL_VERIFICATION_NOT_REQUIRED` | Original verification isn't required for this flow |+| `PARENT_CHANNEL_NOT_IN_GUILD` | Parent channel isn't present in the community |+| `PARENT_MUST_BE_CATEGORY` | Parent must be a category |+| `PARSE_AND_USERS_OR_ROLES_CANNOT_BE_USED_TOGETHER` | You can't use `parse` together with `allowed_mentions.users` or `allowed_mentions.roles` |+| `PASSWORD_IS_TOO_COMMON` | Your password is too common |+| `PASSWORD_LENGTH_INVALID` | String length must be between {min} and {max} characters |+| `PASSWORD_NOT_SET` | Password isn't set |+| `PRECEDING_CHANNEL_MUST_SHARE_PARENT` | Preceding channel must share the same parent as the moved channel |+| `PRECEDING_CHANNEL_NOT_IN_GUILD` | Preceding channel isn't present in the community |+| `PRONOUNS_CHANGED_TOO_MANY_TIMES` | You've changed your pronouns too often recently |+| `RECIPIENT_IDS_CANNOT_BE_EMPTY` | Recipient IDs can't be empty |+| `REFERENCED_ATTACHMENT_NOT_FOUND` | Referenced attachment "{filename}" wasn't found in message attachments |+| `REPORT_OUTCOME_INVALID` | An actioned resolution needs an outcome other than no violation |+| `SEARCH_FILTER_NEEDS_MEMBERSHIP` | Join this community to search by person or mention |+| `SESSION_TIMEOUT` | Session timed out |+| `SETUP_TOKEN_INVALID` | That setup token is not correct |+| `SETUP_TOKEN_REQUIRED` | This instance is not set up yet |+| `SMTP_HOST_REQUIRED` | Enter an SMTP server before turning on email delivery |+| `SNOWFLAKE_OUT_OF_RANGE` | Invalid snowflake |+| `SSO_ACCOUNT_LINKED_TO_ANOTHER_IDENTITY` | This account is already linked to a different SSO identity |+| `SSO_EMAIL_NOT_VERIFIED` | Your SSO provider has not verified your email address |+| `SSO_IDENTITY_LINKED_TO_ANOTHER_ACCOUNT` | This SSO identity is already linked to a different account |+| `SSO_IDENTITY_MISMATCH` | SSO identity mismatch between id_token and userinfo |+| `SSO_MISCONFIGURED` | SSO is misconfigured |+| `SSO_PROVIDER_DID_NOT_RETURN_EMAIL` | Your SSO provider didn't return an email address |+| `SSO_TEST_CODE_MISSING_EMAIL` | SSO test code is missing the email payload |+| `SSO_UNABLE_TO_ALLOCATE_DISCRIMINATOR` | We couldn't allocate a discriminator for your SSO account |+| `STRING_LENGTH_EXACT` | String must be exactly {length} characters |+| `STRING_LENGTH_INVALID` | String length must be between {min} and {max} characters |+| `SYSTEM_CHANNEL_MUST_BE_IN_GUILD` | System channel must be in this community |+| `SYSTEM_CHANNEL_MUST_BE_TEXT` | System channel must be a text channel |+| `TAG_ALREADY_TAKEN` | This tag is already taken |+| `TAG_STYLE_REQUIRES_EMAIL_SIGN_IN` | Tags are only available when people sign in with email |+| `THIS_VANITY_URL_IS_ALREADY_TAKEN` | This vanity URL is already taken |+| `TICKET_ALREADY_COMPLETED` | This ticket has already been completed |+| `TIMEOUT_CANNOT_EXCEED_365_DAYS` | Timeout can't be longer than {maxDays} days from now |+| `TOO_LARGE` | Synced preferences exceed {max_bytes} bytes |+| `TOO_MANY_EMBEDS` | Too many embeds |+| `TOO_MANY_FILES` | Too many files |+| `TOO_MANY_USERS_WITH_THIS_USERNAME` | There are too many users with this username |+| `TOO_MANY_USERS_WITH_USERNAME_TRY_DIFFERENT` | There are too many users with this username |+| `TOTP_NOT_ENABLED` | Two-factor authentication using an authenticator app isn't enabled for this account |+| `UNCLAIMED_ACCOUNTS_CAN_ONLY_SET_EMAIL_VIA_TOKEN` | Claim your account before changing your profile |+| `UNRESOLVED_ATTACHMENT_URL` | Unresolved `attachment://` URL detected |+| `UPLOADED_ATTACHMENT_NOT_FOUND` | Uploaded attachment {filename} wasn't found |+| `URL_LENGTH_INVALID` | URL must be between {min} and {max} characters |+| `URL_MUST_USE_HTTPS` | URL must start with https:// |+| `URL_NOT_PUBLICLY_ROUTABLE` | URL must resolve to a publicly routable address |+| `USERNAME_ALREADY_TAKEN` | This username is already taken |+| `USERNAME_CANNOT_CONTAIN_RESERVED_TERMS` | Username can't contain "fluxer" or "system message" |+| `USERNAME_CHANGED_TOO_MANY_TIMES` | You've changed your username too often recently |+| `USERNAME_INVALID_CHARACTERS` | Username can only contain Latin letters (a-z, A-Z), numbers (0-9), and underscores (_) |+| `USERNAME_LENGTH_INVALID` | Username must be between {min} and {max} characters |+| `USERNAME_RESERVED_VALUE` | Username can't be "everyone" or "here" |+| `USER_DOES_NOT_HAVE_AN_EMAIL_ADDRESS` | This user doesn't have an email address |+| `USER_IS_NOT_BANNED` | This user isn't banned |+| `USER_MUST_BE_A_BOT_TO_BE_MARKED_AS_A_SYSTEM_USER` | User must be a bot to be marked as a system user |+| `USER_NOT_IN_CHANNEL` | This user isn't in the channel |+| `VALUE_MUST_BE_INTEGER_IN_RANGE` | The value for `{name}` must be an integer between {minValue} and {maxValue} |+| `VANITY_URL_CODE_ALREADY_TAKEN` | Vanity URL code is already taken |+| `VANITY_URL_CODE_CANNOT_CONTAIN_FLUXER` | Vanity URL code can't contain "fluxer" |+| `VANITY_URL_CODE_LENGTH_INVALID` | Vanity URL code must be between {min} and {max} characters |+| `VANITY_URL_INVALID_CHARACTERS` | Vanity URL can only contain lowercase letters (a-z), digits (0-9), and hyphens (-) |+| `VANITY_URL_REQUIRES_FEATURE` | Vanity URL requires VANITY_URL feature |+| `VERIFICATION_BASIS_REQUIRES_EMAIL_DELIVERY` | Accounts can only be verified by a confirmed email while email delivery is on |+| `VERIFICATION_CODE_EXPIRED` | Verification code has expired |+| `VERIFICATION_CODE_NOT_ISSUED` | No verification code has been issued |+| `VISIONARY_REQUIRED_FOR_DISCRIMINATOR` | You must be on the Visionary lifetime plan to use that discriminator |+| `VOICE_ACTIVITY_SHARING_ON_COOLDOWN` | You can only update your voice activity sharing default once every 24 hours |+| `VOICE_CHANNELS_CANNOT_BE_ABOVE_TEXT_CHANNELS` | Voice channels can't be positioned above text channels within the same category |+| `VOICE_MESSAGES_ATTACHMENT_DURATION_REQUIRED` | Voice message attachments must specify a duration |+| `VOICE_MESSAGES_ATTACHMENT_MUST_BE_AUDIO` | Voice message attachments must be audio files |+| `VOICE_MESSAGES_ATTACHMENT_WAVEFORM_REQUIRED` | Voice message attachments must include waveform data |+| `VOICE_MESSAGES_CANNOT_HAVE_CONTENT` | Voice messages can't have text content |+| `VOICE_MESSAGES_CANNOT_HAVE_EMBEDS` | Voice messages can't have embeds |+| `VOICE_MESSAGES_CANNOT_HAVE_FAVORITE_MEMES` | Voice messages can't have saved media |+| `VOICE_MESSAGES_CANNOT_HAVE_STICKERS` | Voice messages can't have stickers |+| `VOICE_MESSAGES_DURATION_EXCEEDS_LIMIT` | Voice message duration can't exceed {maxDuration} seconds |+| `VOICE_MESSAGES_REQUIRE_SINGLE_ATTACHMENT` | Voice messages must contain exactly one attachment |+| `WEBHOOK_NAME_LENGTH_INVALID` | Webhook name must be between {min} and {max} characters |diff --git a/fluxer_docs/src/content/docs/http-api/gateway.mdx b/fluxer_docs/src/content/docs/http-api/gateway.mdxindex 6494ea96f..36890da34 100644--- a/fluxer_docs/src/content/docs/http-api/gateway.mdx+++ b/fluxer_docs/src/content/docs/http-api/gateway.mdx@@ -12,8 +12,6 @@ Use a [bot token](/authentication/#bot-tokens). User clients read `endpoints.gat## Gateway information object-Every field is always present.-### Structure| Field | Type | Description |@@ -39,8 +37,6 @@ Fluxer appends no query string, so a client appends the [connection parameters](}```-[Identify](/gateway/commands/#identify) accepts a `shard` pair whose `shard_count` element is from 1 through 16,384 under the [sharding](/gateway/overview/#sharding) contract, whatever `shards` reports. A bot session whose shard is assigned more than 2,500 guilds closes with `4011`, and the bot must shard further. A user session is never checked against the guild ceiling.-## Session start limit objectThese are fixed compatibility values, not live usage counters.@@ -89,7 +85,7 @@ A 200 has the informational [rate limit headers](/topics/rate-limits/#rate-limit### Side effects-Use the `Bot ` authorisation prefix. Repeated invalid authentication can trigger the [abuse protections](/http-api/errors/#client-errors-as-an-abuse-signal).+Use the `Bot ` authorisation prefix. Repeated invalid authentication can trigger the [abuse protections](/http-api/errors/#status-codes).### Rate limitdiff --git a/fluxer_docs/src/content/docs/http-api/guild-audit-logs.mdx b/fluxer_docs/src/content/docs/http-api/guild-audit-logs.mdxindex f85d03aaf..e46cbbab4 100644--- a/fluxer_docs/src/content/docs/http-api/guild-audit-logs.mdx+++ b/fluxer_docs/src/content/docs/http-api/guild-audit-logs.mdx@@ -241,8 +241,6 @@ An update records one change object per differing field, so an unchanged field i### Change fields-Each table below names the fields an action of that family can record.-#### Guild change fieldsRecorded by [GUILD_UPDATE](#audit-actions).@@ -530,7 +528,7 @@ A guild ID that names no guild returns 404 `UNKNOWN_GUILD`. A non-member of an e<sup>1</sup> A negative value and a value above 100 are both rejected, and the accepted value `0` is processed as `1`-<sup>2</sup> The cursors are mutually exclusive, and supplying both returns 400 `INVALID_FORM_BODY` with [`CANNOT_SPECIFY_BOTH_BEFORE_AND_AFTER`](/http-api/errors/#validation-error-code-registry) against `before`+<sup>2</sup> The cursors are mutually exclusive, and supplying both returns 400 `INVALID_FORM_BODY` with [`CANNOT_SPECIFY_BOTH_BEFORE_AND_AFTER`](/http-api/errors/#validation-error-codes) against `before`<sup>3</sup> Supplying either filter disables message deletion consolidation for the request, so a page filtered by actor or action returns the unconsolidated entriesdiff --git a/fluxer_docs/src/content/docs/http-api/guild-moderation.mdx b/fluxer_docs/src/content/docs/http-api/guild-moderation.mdxindex c2fe5186f..f9b51d3dd 100644--- a/fluxer_docs/src/content/docs/http-api/guild-moderation.mdx+++ b/fluxer_docs/src/content/docs/http-api/guild-moderation.mdx@@ -44,14 +44,6 @@ A guild ban object names the banned account, the moderator, the reason, and any}```-:::note[Fluxer never returns the ban address or email]-A ban also stores the email address and the last active IP address of the banned account. Fluxer rejects an invite join by any account that matches either value. These values are not exposed in the ban object.-:::--An [invite](/http-api/invites/) rejected for an IP match returns 403 `USER_IP_BANNED_FROM_GUILD`. An account or email match returns 403 `USER_BANNED_FROM_GUILD`. Fluxer skips the IP match when the joining account's address is on the operator's IP ban exemption list, or when IP lookup classifies that address as carrier-grade NAT or shared access. Adding a member through the Admin API, installing a bot through OAuth2, and the automatic join into the visionaries guild after a Stripe purchase skip every ban check. The automatic join into the single community checks the account and IP matches and skips the email match.--[Remove guild ban](#remove-guild-ban) releases the IP address block and the email block. Permanently deleting the banned account deletes every guild ban it holds, which releases both of those blocks in every guild at once.-## List guild bans<RouteHeader method="GET" path="/v1/guilds/{guild_id}/bans" bot />@@ -73,9 +65,6 @@ The operation returns the complete collection in one response and has no limit o| Status | Body | Condition || --- | --- | --- || 200 | array[[guild ban](#guild-ban-object) object] | Bans were returned |-| 400<sup>1</sup> | [error response](/http-api/#error-response) | Caller holds `BAN_MEMBERS` with no enrolled authenticator in an elevated-MFA guild |-| 403<sup>2</sup> | [error response](/http-api/#error-response) | Guild is unavailable, or `BAN_MEMBERS` is absent |-| 404 | [error response](/http-api/#error-response) | Guild does not exist and the request returns `UNKNOWN_GUILD` |<sup>1</sup> The [error code](/http-api/errors/) is `TWO_FACTOR_REQUIRED`, returned only after the permission itself has been confirmed@@ -189,7 +178,7 @@ Fluxer rejects a target that is not banned with 400 `INVALID_FORM_BODY`.| 403<sup>2</sup> | [error response](/http-api/#error-response) | Guild is unavailable, or `BAN_MEMBERS` is absent || 404 | [error response](/http-api/#error-response) | Guild does not exist and the request returns `UNKNOWN_GUILD` |-<sup>1</sup> A target that is not banned returns `INVALID_FORM_BODY` with [`USER_IS_NOT_BANNED`](/http-api/errors/#validation-error-code-registry) against `user_id`. The missing-authenticator code is `TWO_FACTOR_REQUIRED`, returned only after the permission is confirmed+<sup>1</sup> A target that is not banned returns `INVALID_FORM_BODY` with [`USER_IS_NOT_BANNED`](/http-api/errors/#validation-error-codes) against `user_id`. The missing-authenticator code is `TWO_FACTOR_REQUIRED`, returned only after the permission is confirmed<sup>2</sup> The [error code](/http-api/errors/) is `MISSING_ACCESS` for an unavailable guild and `MISSING_PERMISSIONS` otherwisediff --git a/fluxer_docs/src/content/docs/http-api/guilds.mdx b/fluxer_docs/src/content/docs/http-api/guilds.mdxindex 6065954b8..b1a161e3d 100644--- a/fluxer_docs/src/content/docs/http-api/guilds.mdx+++ b/fluxer_docs/src/content/docs/http-api/guilds.mdx@@ -352,6 +352,8 @@ A verification level gates member participation. Fluxer evaluates it when a membThe guild owner, a bot, and any member holding at least one role bypass the check at every level.+An unclaimed account that fails the check gets 403 `GUILD_VERIFICATION_REQUIRED`, and an unverified email address gets 403 `GUILD_EMAIL_VERIFICATION_REQUIRED`. An account younger than 5 minutes gets 403 `ACCOUNT_TOO_NEW_FOR_GUILD`. At HIGH, a membership younger than 10 minutes gets 403 `GUILD_VERIFICATION_REQUIRED`.+## MFA levels| Value | Name | Description |diff --git a/fluxer_docs/src/content/docs/http-api/index.md b/fluxer_docs/src/content/docs/http-api/index.mdindex 9725d276a..516510aa4 100644--- a/fluxer_docs/src/content/docs/http-api/index.md+++ b/fluxer_docs/src/content/docs/http-api/index.md@@ -187,13 +187,13 @@ The paths below are readable from any origin. `/v1/webhooks/{webhook_id}/{token}## Error response object-A JSON error response identifies the stable error code and a human-readable message. An operation can add further top-level members with structured detail. [Errors](/http-api/errors/) documents the code registries, the HTTP status fallback mapping, and the localisation behaviour.+A JSON error response identifies the stable error code and a human-readable message. An operation can add further top-level members with structured detail. [Errors](/http-api/errors/) lists status codes and every error code.### Structure| Field | Type | Description || --- | --- | --- |-| code<sup>1</sup> | string | Stable machine-readable [API error code](/http-api/errors/#api-error-code-registry) |+| code<sup>1</sup> | string | Stable machine-readable [API error code](/http-api/errors/#api-error-codes) || message<sup>2</sup> | string | Human-readable description of this failure || errors?<sup>3</sup> | array[[validation error](#validation-error-object) object] | Request fields that failed validation |@@ -214,15 +214,11 @@ A JSON error response identifies the stable error code and a human-readable messThe body has no request identifier. A client correlates a failure through the `X-Request-ID` response header.-:::note[Structured detail sits at the top level]-`IP_AUTHORIZATION_REQUIRED` has `ip_authorization_required`, `ticket`, `email`, and `resend_available_in`. `SUDO_MODE_REQUIRED` has `has_mfa` and `methods`.-:::--`MISSING_OAUTH_SCOPE` has `required_scope`, and `RATE_LIMITED` has `retry_after` and `global`, where `global` is `true` only on a global bucket denial. Each operation that produces one of those members documents it. A client MUST treat any member it does not recognise as absent. Two operations returning the same `code` can have different extra members, so a client MUST read the members its own operation documents.+Some codes add top-level fields, listed under [Extra fields](/http-api/errors/#extra-fields). A client MUST treat any member it does not recognise as absent. Two operations returning the same `code` can have different extra members, so a client MUST read the members its own operation documents.## Validation error object-Each entry identifies one failed input field. A 400 response whose top-level code is `INVALID_FORM_BODY` has the array in `errors`. [Errors](/http-api/errors/#validation-failure-codes) states which failures produce it.+Each entry identifies one failed input field. A 400 response whose top-level code is `INVALID_FORM_BODY` has the array in `errors`. [Errors](/http-api/errors/#validation-errors) states which failures produce it.### Structure@@ -234,7 +230,7 @@ Each entry identifies one failed input field. A 400 response whose top-level cod<sup>1</sup> A nested field is a dot-joined path such as `embeds.0.title`, and a failure with no field position uses the literal path `root`-<sup>2</sup> Present whenever the failure has an enumerated code from the [validation error code registry](/http-api/errors/#validation-error-code-registry)+<sup>2</sup> Present whenever the failure has an enumerated code from the [validation error codes](/http-api/errors/#validation-error-codes)<sup>3</sup> The localised message registered for the `code`, falling back to the code itself, and a fixed English string on a failure that has no codediff --git a/fluxer_docs/src/content/docs/snowflakes.md b/fluxer_docs/src/content/docs/snowflakes.mdindex 4c0900923..e926a27f4 100644--- a/fluxer_docs/src/content/docs/snowflakes.md+++ b/fluxer_docs/src/content/docs/snowflakes.md@@ -36,13 +36,6 @@ To obtain the creation time in Unix milliseconds, shift the snowflake right by 2```texttimestamp_ms = (snowflake >> 22) + 1420070400000-```--A thread started from a message has the ID of that message. The formula then returns the time of the message, and `create_timestamp` in the [thread metadata](/http-api/threads/#thread-metadata-object) is the time the thread was created.--The inverse expression produces the smallest possible snowflake for a Unix millisecond timestamp. It is useful as a pagination boundary.--```textsnowflake = (timestamp_ms - 1420070400000) << 22```@@ -59,13 +52,13 @@ Fluxer emits a snowflake as an unsigned decimal string in every JSON body, path| HTTP request<sup>1</sup> | `0`, or a non-zero digit followed by further digits, sent as a JSON string or as a JSON integer || Gateway command<sup>2</sup> | A non-zero digit followed by further digits, sent as a string of ASCII digits or as a positive JSON integer |-<sup>1</sup> Fluxer removes leading and trailing whitespace before it reads the text. In that text a leading zero, a sign, a decimal point, and any other non-digit character are rejected with the validation code [`INVALID_SNOWFLAKE_FORMAT`](/http-api/errors/#validation-error-code-registry), and a well-formed value above 9223372036854775807 is rejected with [`SNOWFLAKE_OUT_OF_RANGE`](/http-api/errors/#validation-error-code-registry)+<sup>1</sup> Fluxer removes leading and trailing whitespace before it reads the text. In that text a leading zero, a sign, a decimal point, and any other non-digit character are rejected with the validation code [`INVALID_SNOWFLAKE_FORMAT`](/http-api/errors/#validation-error-codes), and a well-formed value above 9223372036854775807 is rejected with [`SNOWFLAKE_OUT_OF_RANGE`](/http-api/errors/#validation-error-codes)<sup>2</sup> The Gateway rejects `0`, a leading zero, a signed value, a negative integer, and a value above 9223372036854775807-Both HTTP validation codes are element codes inside a 400 [`INVALID_FORM_BODY`](/http-api/errors/#api-error-code-registry) response. Each Gateway [command](/gateway/commands/) states what its own rejection does, from discarding the field to abandoning the whole command.+Both HTTP validation codes are element codes inside a 400 [`INVALID_FORM_BODY`](/http-api/errors/#api-error-codes) response. Each Gateway [command](/gateway/commands/) states what its own rejection does, from discarding the field to abandoning the whole command.-A snowflake sent as a JSON number keeps its exact value at any size. A fractional JSON number is an ordinary type failure and reports [`INVALID_FORMAT`](/http-api/errors/#validation-error-code-registry). Fluxer reads an exponent form as the number it means, and one above 9007199254740991 reports [`INVALID_SNOWFLAKE_FORMAT`](/http-api/errors/#validation-error-code-registry). Path parameters and query string parameters always arrive as text.+A snowflake sent as a JSON number keeps its exact value at any size. A fractional JSON number is an ordinary type failure and reports [`INVALID_FORMAT`](/http-api/errors/#validation-error-codes). Fluxer reads an exponent form as the number it means, and one above 9007199254740991 reports [`INVALID_SNOWFLAKE_FORMAT`](/http-api/errors/#validation-error-codes). Path parameters and query string parameters always arrive as text.:::note[`0` is the beginning of snowflake time]An HTTP pagination cursor accepts `0`. An HTTP path parameter or field that identifies a real resource also accepts `0`, and the request then receives the ordinary not-found result for that resource.diff --git a/fluxer_docs/src/content/docs/topics/captcha.md b/fluxer_docs/src/content/docs/topics/captcha.mdindex fb800cf85..cc0aa922a 100644--- a/fluxer_docs/src/content/docs/topics/captcha.md+++ b/fluxer_docs/src/content/docs/topics/captcha.md@@ -76,4 +76,4 @@ Fluxer skips the check in three cases, and the operation then proceeds with no C| CAPTCHA_REQUIRED | 400 | The operation is gated and the request has no token || INVALID_CAPTCHA | 400 | The token is malformed, expired, already used, or wrong |-Both codes are defined in the [API error code registry](/http-api/errors/#api-error-code-registry). Both bodies are the ordinary [error response](/http-api/#error-response) envelope with `captcha_provider` and `altcha_challenge` added.+Both codes are listed under [API error codes](/http-api/errors/#api-error-codes). Both bodies are the ordinary [error response](/http-api/#error-response) envelope with `captcha_provider` and `altcha_challenge` added.