fix(api)!: align error codes with throw sites and image bounds (#2488)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-06 15:21:38 +02:00
1 parent 4534822355
commit d5bfa5a73d
99 files changed
+857 -4853

No files matched your search

+4 -102
View File
@@ -25386,29 +25386,23 @@
"type": "string",
"enum": [
"ACCESS_DENIED",
"ACCOUNT_DISABLED",
"BAD_GATEWAY",
"BAD_REQUEST",
"BLUESKY_OAUTH_AUTHORIZATION_FAILED",
"BLUESKY_OAUTH_CALLBACK_FAILED",
"BLUESKY_OAUTH_NOT_ENABLED",
"BLUESKY_OAUTH_SESSION_EXPIRED",
"BLUESKY_OAUTH_STATE_INVALID",
"ACCOUNT_SCHEDULED_FOR_DELETION",
"ACCOUNT_SUSPENDED_PERMANENTLY",
"ACCOUNT_SUSPENDED_TEMPORARILY",
"ACCOUNT_SUSPICIOUS_ACTIVITY",
"ACCOUNT_TOO_NEW_FOR_GUILD",
"ACLS_MUST_BE_NON_EMPTY",
"ADMIN_API_KEY_NOT_FOUND",
"APPLICATION_NOT_FOUND",
"APPLICATION_NOT_OWNED",
"ALREADY_FRIENDS",
"AUDIT_LOG_INDEXING",
"BOTS_CANNOT_CREATE_GUILDS",
"BOTS_CANNOT_SEND_FRIEND_REQUESTS",
"BOT_ALREADY_IN_GUILD",
"BOT_APPLICATION_NOT_FOUND",
"BOT_IS_PRIVATE",
"BOT_USER_AUTH_ENDPOINT_ACCESS_DENIED",
"BOT_USER_AUTH_SESSION_CREATION_DENIED",
@@ -25419,7 +25413,6 @@
"CANNOT_EXECUTE_ON_DM",
"CANNOT_BLOCK_SYSTEM_USER",
"CANNOT_MODIFY_SYSTEM_WEBHOOK",
"CANNOT_MODIFY_VOICE_STATE",
"CANNOT_REDEEM_PLUTONIUM_WITH_VISIONARY",
"CANNOT_REPORT_GUILD",
"CANNOT_REPORT_OWN_GUILD",
@@ -25433,27 +25426,21 @@
"CANNOT_TRANSFER_OWNERSHIP_TO_BOT",
"CANNOT_SHRINK_RESERVED_SLOTS",
"CAPTCHA_REQUIRED",
"CHANNEL_INDEXING",
"COMMUNICATION_DISABLED",
"CONNECTION_ALREADY_EXISTS",
"CONNECTION_INITIATION_TOKEN_INVALID",
"CONNECTION_INVALID_IDENTIFIER",
"CONNECTION_INVALID_TYPE",
"CONNECTION_LIMIT_REACHED",
"CONNECTION_NOT_FOUND",
"CONNECTION_VERIFICATION_FAILED",
"CONFLICT",
"CONTENT_BLOCKED",
"CREATION_FAILED",
"DECRYPTION_FAILED",
"DELETION_FAILED",
"DISCOVERY_ALREADY_APPLIED",
"DISCOVERY_APPLICATION_ALREADY_REVIEWED",
"DISCOVERY_APPLICATION_NOT_FOUND",
"DISCOVERY_DESCRIPTION_REQUIRED",
"DISCOVERY_DISABLED",
"DISCOVERY_INSUFFICIENT_MEMBERS",
"DISCOVERY_INVALID_CATEGORY",
"DISCOVERY_NOT_DISCOVERABLE",
"DISCRIMINATOR_REQUIRED",
"EMAIL_SERVICE_NOT_TESTABLE",
@@ -25471,9 +25458,6 @@
"REGISTRATION_PENDING_APPROVAL",
"REGISTRATION_REJECTED",
"REGISTRATION_URL_INVALID",
"EMPTY_ENCRYPTED_BODY",
"ENCRYPTION_FAILED",
"EU_WITHDRAWAL_WAIVER_REQUIRED",
"EXPLICIT_CONTENT_CANNOT_BE_SENT",
"FEATURE_NOT_AVAILABLE_SELF_HOSTED",
"FEATURE_TEMPORARILY_DISABLED",
@@ -25485,15 +25469,12 @@
"GONE",
"GIFT_CODE_ALREADY_REDEEMED",
"GUILD_PHONE_VERIFICATION_REQUIRED",
"GUILD_TEMPLATE_FETCH_FAILED",
"GUILD_TEMPLATE_INVALID",
"GUILD_VERIFICATION_REQUIRED",
"HANDOFF_CODE_EXPIRED",
"HARVEST_EXPIRED",
"HARVEST_FAILED",
"HARVEST_NOT_READY",
"HTTP_GET_AUTHORIZE_NOT_SUPPORTED",
"INSTANCE_VERSION_MISMATCH",
"INTERNAL_SERVER_ERROR",
"INVALID_ACLS_FORMAT",
"INVALID_API_ORIGIN",
@@ -25502,29 +25483,19 @@
"INVALID_CAPTCHA",
"INVALID_CHANNEL_TYPE_FOR_CALL",
"INVALID_CHANNEL_TYPE",
"INVALID_CLIENT",
"INVALID_CLIENT_SECRET",
"INVALID_DSA_REPORT_TARGET",
"INVALID_DSA_TICKET",
"INVALID_DSA_VERIFICATION_CODE",
"INVALID_DECRYPTED_JSON",
"INVALID_EPHEMERAL_KEY",
"INVALID_FLAGS_FORMAT",
"INVALID_IV",
"INVALID_FORM_BODY",
"INVALID_GRANT",
"INVALID_HANDOFF_CODE",
"INVALID_PERMISSIONS_INTEGER",
"INVALID_PERMISSIONS_NEGATIVE",
"INVALID_PHONE_NUMBER",
"INVALID_PHONE_VERIFICATION_CODE",
"INVALID_REDIRECT_URI",
"INVALID_REQUEST",
"INVALID_RESPONSE_TYPE_FOR_NON_BOT",
"INVALID_SCOPE",
"INVALID_STREAM_KEY_FORMAT",
"INVALID_STREAM_THUMBNAIL_PAYLOAD",
"INVALID_SUDO_TOKEN",
"INVALID_SUSPICIOUS_FLAGS_FORMAT",
"INVALID_SYSTEM_FLAG",
"INVALID_TIMESTAMP",
@@ -25539,8 +25510,7 @@
"IP_AUTHORIZATION_RESEND_LIMIT_EXCEEDED",
"GLOBAL_IP_BANNED",
"GLOBAL_IP_TEMPORARILY_BANNED",
"IP_BANNED",
"MAX_ANIMATED_EMOJIS",
"IP_BAN_DECLINED",
"MAX_APPLICATIONS",
"MAX_BOOKMARKS",
"MAX_CATEGORY_CHANNELS",
@@ -25554,15 +25524,11 @@
"MAX_GUILD_MEMBERS",
"MAX_GUILD_ROLES",
"MAX_GUILDS",
"NEW_ACCOUNT_GUILD_JOIN_RATE_LIMITED",
"MAX_INVITES",
"MAX_PINS_PER_CHANNEL",
"MESSAGE_TOTAL_ATTACHMENT_SIZE_TOO_LARGE",
"MAX_REACTIONS",
"MAX_STICKERS",
"MAX_WEBHOOKS_PER_CHANNEL",
"MAX_WEBHOOKS_PER_GUILD",
"MAX_WEBHOOKS",
"NCMEC_ALREADY_SUBMITTED",
"NCMEC_SUBMISSION_FAILED",
"MEDIA_METADATA_ERROR",
@@ -25570,13 +25536,8 @@
"MISSING_ACCESS",
"MISSING_ACL",
"MISSING_AUTHORIZATION",
"MISSING_CLIENT_SECRET",
"MISSING_EPHEMERAL_KEY",
"MISSING_IV",
"MISSING_OAUTH_FIELDS",
"MISSING_OAUTH_SCOPE",
"MISSING_PERMISSIONS",
"MISSING_REDIRECT_URI",
"NO_ACTIVE_CALL",
"NO_ACTIVE_SUBSCRIPTION",
"NOT_FOUND",
@@ -25584,13 +25545,10 @@
"NO_PASSKEYS_REGISTERED",
"NO_PENDING_DELETION",
"NO_USERS_WITH_FLUXERTAG_EXIST",
"NO_VISIONARY_SLOTS_AVAILABLE",
"NOT_A_BOT_APPLICATION",
"NOT_FRIENDS_WITH_USER",
"NOT_OWNER_OF_ADMIN_API_KEY",
"NSFW_CONTENT_AGE_RESTRICTED",
"PASSKEY_AUTHENTICATION_FAILED",
"PASSKEYS_DISABLED",
"PHONE_ADD_NOT_ELIGIBLE",
"PHONE_ALREADY_USED",
"PHONE_COUNTRY_NOT_SUPPORTED",
@@ -25606,7 +25564,6 @@
"PREVIEW_MUST_BE_JPEG",
"PROCESSING_FAILED",
"RATE_LIMITED",
"REDIRECT_URI_REQUIRED_FOR_NON_BOT",
"REPORT_ALREADY_RESOLVED",
"REPORT_BANNED",
"RESPONSE_VALIDATION_ERROR",
@@ -25622,7 +25579,6 @@
"SSO_REQUIRED",
"STREAM_KEY_CHANNEL_MISMATCH",
"STREAM_KEY_SCOPE_MISMATCH",
"STREAM_THUMBNAIL_PAYLOAD_EMPTY",
"STRIPE_ERROR",
"STRIPE_GIFT_REDEMPTION_IN_PROGRESS",
"STRIPE_INVALID_PRODUCT",
@@ -25635,7 +25591,6 @@
"STRIPE_PAYMENT_NOT_AVAILABLE",
"STRIPE_SUBSCRIPTION_ALREADY_CANCELING",
"STRIPE_SUBSCRIPTION_NOT_CANCELING",
"STRIPE_SUBSCRIPTION_PERIOD_END_MISSING",
"STRIPE_WEBHOOK_NOT_AVAILABLE",
"STRIPE_WEBHOOK_SIGNATURE_INVALID",
"STRIPE_WEBHOOK_SIGNATURE_MISSING",
@@ -25644,7 +25599,6 @@
"DONATION_MAGIC_LINK_EXPIRED",
"DONATION_MAGIC_LINK_INVALID",
"DONATION_MAGIC_LINK_USED",
"DONOR_NOT_FOUND",
"SUDO_MODE_REQUIRED",
"TAG_ALREADY_TAKEN",
"TEMPORARY_INVITE_REQUIRES_PRESENCE",
@@ -25685,8 +25639,6 @@
"UNKNOWN_WEBAUTHN_CREDENTIAL",
"UNKNOWN_APPLICATION",
"UNKNOWN_WEBHOOK",
"UNFURL_STREAM_TOO_LARGE",
"UNSUPPORTED_RESPONSE_TYPE",
"USERNAME_NOT_AVAILABLE",
"UPDATE_FAILED",
"USER_BANNED_FROM_GUILD",
@@ -25696,34 +25648,27 @@
"VALIDATION_ERROR",
"VOICE_CHANNEL_FULL",
"WEBAUTHN_CREDENTIAL_LIMIT_REACHED",
"AGE_VERIFICATION_ALREADY_VERIFIED",
"AGE_VERIFICATION_INVALID_CARD_TYPE"
"AGE_VERIFICATION_ALREADY_VERIFIED"
],
"x-enumDescriptions": [
"You don't have access to this resource or feature.",
"This account has been disabled.",
"Bad gateway.",
"Bad request.",
"We couldn't resolve that Bluesky handle. Please check it and try again.",
"We couldn't complete the Bluesky connection. Please try again.",
"Bluesky connections are not enabled on this instance.",
"Your Bluesky session has expired. Please reconnect your account.",
"The authorization request has expired or is invalid. Please try again.",
"This account is scheduled for deletion.",
"This account has been permanently suspended.",
"This account has been temporarily suspended.",
"Your account is locked due to suspicious activity.",
"Your account is too new to send messages in this community.",
"ACLs must be non-empty.",
"Admin API key wasn't found.",
"Application wasn't found.",
"You don't own this application.",
"You're already friends with this user.",
"Audit logs are being indexed. Please try again in a moment.",
"Bots can't create communities.",
"Bots can't send friend requests.",
"This bot is already in the community.",
"Bot application wasn't found.",
"This bot is private.",
"Bot users can't use auth endpoints.",
"Bot users can't create auth sessions.",
@@ -25734,7 +25679,6 @@
"This action can't be performed in a DM.",
"You can't block the system user.",
"You can't edit system messages.",
"You can't modify voice state.",
"You can't redeem {premium_tier_name} with Visionary.",
"You can't report this community.",
"You can't report your own community.",
@@ -25748,27 +25692,21 @@
"Community ownership can't be transferred to a bot.",
"You can't shrink reserved slots.",
"Captcha is required.",
"Channels are being indexed. Please try again in a moment.",
"Communication is disabled.",
"A connection of this type with this identifier already exists.",
"The connection initiation token is invalid or has expired.",
"The connection identifier is invalid.",
"The connection type is not supported.",
"You've reached the maximum number of connections ({limit}).",
"Unknown connection.",
"Connection verification failed. Make sure the verification token is correctly placed.",
"Conflict.",
"This content was blocked by safety systems.",
"We couldn't create the resource. Please try again.",
"We couldn't decrypt the message. The encryption keys may be invalid or corrupted.",
"We couldn't delete the resource. Please try again.",
"This community has already applied for discovery.",
"This discovery application has already been reviewed.",
"Discovery application wasn't found.",
"A description is required for discovery listing.",
"Discovery isn't available on this instance.",
"This community doesn't meet the minimum member count for discovery.",
"Invalid discovery category.",
"This community isn't listed in discovery.",
"Discriminator is required.",
"Email service is temporarily unavailable. Please try again later.",
@@ -25786,9 +25724,6 @@
"This registration is waiting for admin approval.",
"This registration request was rejected.",
"This registration link is invalid or has expired.",
"Empty encrypted body.",
"We couldn't encrypt the message. The encryption keys may be invalid or corrupted.",
"Please confirm the EU/EEA digital content withdrawal waiver before starting checkout.",
"Explicit content can't be sent.",
"This feature isn't available on self-hosted instances.",
"This feature is temporarily disabled.",
@@ -25800,15 +25735,12 @@
"Gone.",
"Gift code is already redeemed.",
"You need to add a phone number to send messages in this community.",
"Failed to fetch the community template. The template may not exist or the external service is unavailable.",
"The community template data is invalid or malformed.",
"Community verification is required.",
"Handoff code expired.",
"Your data export request has expired. Please request a new export.",
"Your data export request failed. Please try again.",
"Your data export is still being prepared. Please check back in a few moments.",
"GET /oauth2/authorize isn't supported. Use POST /oauth2/authorize/consent.",
"Invalid request.",
"Internal server error.",
"Invalid ACLs format.",
"Invalid API origin.",
@@ -25817,29 +25749,19 @@
"Invalid captcha.",
"Calls can only be made in direct messages or group DMs.",
"Invalid channel type.",
"Invalid client.",
"Invalid client secret.",
"Invalid DSA report target.",
"Invalid DSA ticket.",
"Invalid DSA verification code.",
"Invalid decrypted JSON.",
"Invalid ephemeral key.",
"Invalid flags format.",
"Invalid initialization vector.",
"Invalid form body.",
"The authorization grant is invalid, expired, or has been revoked.",
"Invalid handoff code.",
"Permissions must be a valid integer.",
"Permissions must be non-negative.",
"Invalid phone number.",
"Invalid phone verification code.",
"Invalid redirect URI.",
"Invalid request.",
"Response type must be code for non-bot scopes.",
"The requested scope isn't supported or you don't have permission to request it.",
"Invalid stream key format.",
"Invalid stream thumbnail payload.",
"Invalid sudo token.",
"Invalid suspicious flags format.",
"Invalid system flag.",
"Invalid timestamp.",
@@ -25854,8 +25776,7 @@
"IP authorization resend limit exceeded.",
"Your IP address {ipAddress} has been permanently blocked from the Fluxer API by platform administrators. If you believe this is a mistake, contact [email protected] to appeal. Include this IP address in your appeal.",
"Your IP address {ipAddress} has been temporarily blocked from the Fluxer API for 24 hours because of abusive or unusual access patterns. We usually do not provide appeals for temporary API bans. Change IP addresses or wait for the ban to expire, and review the Fluxer API access patterns coming from your client.",
"Your IP address {ipAddress} has been permanently blocked from the Fluxer API by platform administrators. If you believe this is a mistake, contact [email protected] to appeal. Include this IP address in your appeal.",
"You've reached the maximum of {count, plural, one {# animated emoji} other {# animated emojis}}.",
"This IP address cannot be added to the blocklist.",
"You've reached the maximum of {limit, plural, one {# application} other {# applications}}.",
"You've reached the maximum of {count, plural, one {# bookmark} other {# bookmarks}}.",
"You've reached the maximum of {count, plural, one {# category channel} other {# category channels}}.",
@@ -25869,15 +25790,11 @@
"You've reached the maximum of {count, plural, one {# community member} other {# community members}}.",
"You've reached the maximum of {count, plural, one {# community role} other {# community roles}}.",
"You've reached the maximum of {count, plural, one {# community} other {# communities}}.",
"New accounts are limited to joining 10 communities in the first 24 hours. Please try again later.",
"You've reached the maximum of {count, plural, one {# invite} other {# invites}}.",
"You've reached the maximum of {count, plural, one {# pin} other {# pins}} per channel.",
"File size is too large. Maximum file size is {maxSize}.",
"You've reached the maximum of {count, plural, one {# reaction} other {# reactions}}.",
"You've reached the maximum of {count, plural, one {# sticker} other {# stickers}}.",
"You've reached the maximum of {count, plural, one {# webhook} other {# webhooks}} per channel.",
"You've reached the maximum of {count, plural, one {# webhook} other {# webhooks}} per community.",
"You've reached the maximum of {count, plural, one {# webhook} other {# webhooks}}.",
"This content has already been submitted to NCMEC.",
"We couldn't submit the report to NCMEC. Please try again later.",
"Media metadata error.",
@@ -25885,13 +25802,8 @@
"You don't have access to this resource or feature.",
"Missing ACL.",
"Missing or invalid authorization header.",
"Missing client secret.",
"Missing ephemeral key.",
"Missing initialization vector.",
"Missing OAuth fields.",
"The requested scope isn't supported or you don't have permission to request it.",
"You don't have the permissions required to perform this action.",
"Missing redirect URI.",
"No active call.",
"No active subscription.",
"Not found.",
@@ -25899,13 +25811,10 @@
"No passkeys are registered.",
"Invalid request.",
"There are too many users with this username.",
"No Visionary slots are available.",
"This application isn't a bot.",
"You're not friends with this user.",
"You don't have permission to modify this admin API key.",
"NSFW content is age restricted.",
"Passkey authentication failed.",
"Passkeys are disabled.",
"You are not eligible to add a phone number to your account.",
"Phone number is already in use.",
"We don't send verification texts to this country. Use a mobile number from another country, or email [email protected] and a person will review your account.",
@@ -25921,7 +25830,6 @@
"Preview must be JPEG.",
"We couldn't process the request. Please try again.",
"You're being rate limited.",
"Redirect URI is required for non-bot scopes.",
"Report already resolved.",
"You've been banned from submitting reports.",
"Response validation failed: {errors}.",
@@ -25937,7 +25845,6 @@
"Invalid request.",
"Stream key channel mismatch.",
"Stream key scope mismatch.",
"Stream thumbnail payload is empty.",
"Payment processing encountered an error. Please try again or contact support.",
"Gift code redemption is in progress. Try again in a moment.",
"Invalid product selection.",
@@ -25950,7 +25857,6 @@
"Payment processing is temporarily unavailable. Please try again later.",
"Subscription is already set to cancel at period end.",
"Subscription isn't set to cancel.",
"Subscription current_period_end is missing.",
"Webhook processing isn't available.",
"Stripe webhook signature is invalid.",
"Stripe webhook signature is missing.",
@@ -25959,7 +25865,6 @@
"Magic link has expired.",
"Magic link is invalid.",
"Magic link has already been used.",
"Donor not found.",
"Sudo mode is required.",
"This tag is already taken.",
"Temporary invite requires presence.",
@@ -26000,8 +25905,6 @@
"Unknown WebAuthn credential.",
"Unknown application.",
"Unknown webhook.",
"The link preview response is too large to process.",
"Unsupported response type.",
"This username is not available.",
"We couldn't update the resource. Please try again.",
"This user is banned from this community.",
@@ -26011,8 +25914,7 @@
"Validation failed.",
"Voice channel is full.",
"You've reached the maximum of {count, plural, one {# WebAuthn credential} other {# WebAuthn credentials}}.",
"You've already completed age verification.",
"Only credit cards are accepted for age verification. Debit and prepaid cards can't be used."
"You've already completed age verification."
],
"description": "Error codes returned by API operations"
},