discord-is.fun
ReferenceHTTP API

JSON error codes

Every documented code in the error body, from 10003 Unknown Channel to 50013 Missing Permissions.

245 / 245
CodeMessage
0General error (such as a malformed request body, amongst other things)
10001Unknown account
10002Unknown application
10003Unknown channel
10004Unknown guild
10005Unknown integration
10006Unknown invite
10007Unknown member
10008Unknown message
10009Unknown permission overwrite
10010Unknown provider
10011Unknown role
10012Unknown token
10013Unknown user
10014Unknown emoji
10015Unknown webhook
10016Unknown webhook service
10020Unknown session
10021Unknown Asset
10026Unknown ban
10027Unknown SKU
10028Unknown Store Listing
10029Unknown entitlement
10030Unknown build
10031Unknown lobby
10032Unknown branch
10033Unknown store directory layout
10036Unknown redistributable
10038Unknown gift code
10049Unknown stream
10050Unknown premium server subscribe cooldown
10057Unknown guild template
10059Unknown discoverable server category
10060Unknown sticker
10061Unknown sticker pack
10062Unknown interaction
10063Unknown application command
10065Unknown voice state
10066Unknown application command permissions
10067Unknown Stage Instance
10068Unknown Guild Member Verification Form
10069Unknown Guild Welcome Screen
10070Unknown Guild Scheduled Event
10071Unknown Guild Scheduled Event User
10087Unknown Tag
10097Unknown sound
10124Unknown invite target users job (invite exists but has no target users)
10129Unknown invite target users (invite exists but has no target users)
20001Bots cannot use this endpoint
20002Only bots can use this endpoint
20009Explicit content cannot be sent to the desired recipient(s)
20012You are not authorized to perform this action on this application
20015This action requires a premium subscription
20016This action cannot be performed due to slowmode rate limit
20018Only the owner of this account can perform this action
20022This message cannot be edited due to announcement rate limits
20024Under minimum age
20028The write action you are performing on the channel has hit the write rate limit
20029The write action you are performing on the server has hit the write rate limit
20031Your Stage topic, server name, server description, or channel names contain words that are not allowed
20035Guild premium subscription level too low
30001Maximum number of guilds reached (100)
30002Maximum number of friends reached (1000)
30003Maximum number of pins reached for the channel (250)
30004Maximum number of recipients reached (10)
30005Maximum number of guild roles reached (250)
30007Maximum number of webhooks reached (15)
30008Maximum number of emojis reached
30010Maximum number of reactions reached (20)
30011Maximum number of group DMs reached (10)
30013Maximum number of guild channels reached (500)
30015Maximum number of attachments in a message reached (10)
30016Maximum number of invites reached (1000)
30018Maximum number of animated emojis reached
30019Maximum number of server members reached
30030Maximum number of server categories has been reached (5)
30031Guild already has a template
30032Maximum number of application commands reached
30033Maximum number of thread participants has been reached (1000)
30034Maximum number of daily application command creates has been reached (200)
30035Maximum number of bans for non-guild members have been exceeded
30037Maximum number of bans fetches has been reached
30038Maximum number of uncompleted guild scheduled events reached (100)
30039Maximum number of stickers reached
30040Maximum number of prune requests has been reached. Try again later
30042Maximum number of guild widget settings updates has been reached. Try again later
30045Maximum number of soundboard sounds reached
30046Maximum number of edits to messages older than 1 hour reached. Try again later
30047Maximum number of pinned threads in a forum channel has been reached
30048Maximum number of tags in a forum channel has been reached
30052Bitrate is too high for channel of this type
30056Maximum number of premium emojis reached (25)
30058Maximum number of webhooks per guild reached (1000)
30060Maximum number of channel permission overwrites reached (1000)
30061The channels for this guild are too large
30084Target users limit for this guild reached
40001Unauthorized. Provide a valid token and try again
40002You need to verify your account in order to perform this action
40003You are opening direct messages too fast
40004Send messages has been temporarily disabled
40005Request entity too large. Try sending something smaller in size
40006This feature has been temporarily disabled server-side
40007The user is banned from this guild
40009Only one channel can have a parent_id modified at a time
40012Connection has been revoked
40018Only consumable SKUs can be consumed
40019You can only delete sandbox entitlements.
40032Target user is not connected to voice
40033This message has already been crossposted
40041An application command with that name already exists
40043Application interaction failed to send
40058Cannot send a message in a forum channel
40060Interaction has already been acknowledged
40061Tag names must be unique
40062Service resource is being rate limited
40066There are no tags available that can be set by non-moderators
40067A tag is required to create a forum post in this channel
40074An entitlement has already been granted for this resource
40094This interaction has hit the maximum number of follow up messages
40114Target users are already being processed for this invite
40115Target users file has not been processed
40333Cloudflare is blocking your request. This can often be resolved by setting a proper User Agent
50001Missing access
50002Invalid account type
50003Cannot execute action on a DM channel
50004Guild widget disabled
50005Cannot edit a message authored by another user
50006Cannot send an empty message
50007Cannot send messages to this user
50008Cannot send messages in a non-text channel
50009Channel verification level is too high for you to gain access
50010OAuth2 application does not have a bot
50011OAuth2 application limit reached
50012Invalid OAuth2 state
50013You lack permissions to perform that action
50014Invalid authentication token provided
50015Note was too long
50016Provided too few or too many messages to delete. Must provide at least 2 and fewer than 100 messages to delete
50017Invalid MFA Level
50019A message can only be pinned to the channel it was sent in
50020Invite code was either invalid or taken
50021Cannot execute action on a system message
50024Cannot execute action on this channel type
50025Invalid OAuth2 access token provided
50026Missing required OAuth2 scope
50027Invalid webhook token provided
50028Invalid role
50033Invalid Recipient(s)
50034A message provided was too old to bulk delete
50035Invalid form body (returned for both application/json and multipart/form-data bodies), or invalid Content-Type provided
50036An invite was accepted to a guild the application's bot is not in
50039Invalid Activity Action
50041Invalid API version provided
50045File uploaded exceeds the maximum size
50046Invalid file uploaded
50054Cannot self-redeem this gift
50055Invalid Guild
50057Invalid SKU
50067Invalid request origin
50068Invalid message type
50070Payment source required to redeem gift
50073Cannot modify a system webhook
50074Cannot delete a channel required for Community guilds
50080Cannot edit stickers within a message
50081Invalid sticker sent
50083Tried to perform an operation on an archived thread, such as editing a message or adding a user to the thread
50084Invalid thread notification settings
50085before value is earlier than the thread creation date
50086Community server channels must be text channels
50091The entity type of the event is different from the entity you are trying to start the event for
50095This server is not available in your location
50097This server needs monetization enabled in order to perform this action
50101This server needs more boosts to perform this action
50109The request body contains invalid JSON.
50110The provided file is invalid.
50123The provided file type is invalid.
50124The provided file duration exceeds maximum of 5.2 seconds.
50131Owner cannot be pending member
50132Ownership cannot be transferred to a bot user
50138Failed to resize asset below the maximum size: 262144
50144Cannot mix subscription and non subscription roles for an emoji
50145Cannot convert between premium emoji and normal emoji
50146Uploaded file not found.
50151The specified emoji is invalid
50159Voice messages do not support additional content.
50160Voice messages must have a single audio attachment.
50161Voice messages must have supporting metadata.
50162Voice messages cannot be edited.
50163Cannot delete guild subscription integration
50167Cannot send voice effect when user is server muted, deafened, or suppressed
50173You cannot send voice messages in this channel.
50178The user account must first be verified
50192The provided file does not have a valid duration.
50278Cannot send messages to this user due to having no mutual guilds
50600You do not have permission to send this sticker.
60003Two factor is required for this operation
80004No users with DiscordTag exist
90001Reaction was blocked
90002User cannot use burst reactions
110000Index not yet available. Try again later
110001Application not yet available. Try again later
130000API resource is currently overloaded. Try again a little later
150006The Stage is already open
160002Cannot reply without permission to read message history
160004A thread has already been created for this message
160005Thread is locked
160006Maximum number of active threads reached
160007Maximum number of active announcement threads reached
160009Cannot reference a message without permission to read message history
160010NSFW channel message reference not allowed
160014You cannot forward a message whose content you cannot read
170001Invalid JSON for uploaded Lottie file
170002Uploaded Lotties cannot contain rasterized images such as PNG or JPEG
170003Sticker maximum framerate exceeded
170004Sticker frame count exceeds maximum of 1000 frames
170005Lottie animation maximum dimensions exceeded
170006Sticker frame rate is either too small or too large
170007Sticker animation duration exceeds maximum of 5 seconds
180000Cannot update a finished event
180002Failed to create stage needed for stage event
200000Message was blocked by automatic moderation
200001Title was blocked by automatic moderation
220001Webhooks posted to forum channels must have a thread_name or thread_id
220002Webhooks posted to forum channels cannot have both a thread_name and thread_id
220003Webhooks can only create threads in forum channels
220004Webhook services cannot be used in forum channels
240000Message blocked by harmful links filter
340015Access to joining new servers has been limited for the user
350000Cannot enable onboarding, requirements are not met
350001Cannot update onboarding while below requirements
400001Access to file uploads has been limited for this guild
500000Failed to ban users
520000Poll voting blocked
520001Poll expired
520002Invalid channel type for poll creation
520003Cannot edit a poll message
520004Cannot use an emoji included with the poll
520006Cannot expire a non-poll message
530000Your Discord application has not been granted the permission to use provisional accounts.
530001The ID token JWT you have provided is expired. You will need to get another one issued from the identity provider.
530002The issuer in the ID token JWT you have provided does not match what you have configured.
530003The audience in the ID token JWT you have provided does not match the audience you specified in your OIDC configuration. Either update your configuration or pass in an ID token that was issued to your application.
530004The ID token you provided was issued too long ago. Discord will not accept ID tokens issued beyond a week ago. You will need to get a new ID token issued from the identity provider.
530006Discord failed to generate a unique username within the allotted time. This is not a terminal error, and should resolve itself upon a retry.
530007Your client secret is invalid. Double check what you are sending or regenerate your client secret.
↑ ↓ navigate↵ open> commands/ focus filter

Appearance

Theme

Accent colour

Font

Density

Corners

Motion

Sidebar

Keyboard shortcuts

CtrlK
Search everything
>
In search: run a command (theme, density, copy URL…)
/
Filter the current list
W
Watch the current page
JK
Older, newer build (Shift: with notes)
[
Collapse or expand the sidebar
,
Appearance
?
Keyboard shortcuts
Esc
Close

Press G and then a letter to jump straight to a page

Overview

D
Dashboard
A
Activity
J
This week
Z
Daily digests
N
News
W
Watchlist
U
Status

Client

B
Builds
X
Compare builds
S
Strings
L
Client flags
M
Mobile builds
I
Release stats

Experiments & rollouts

E
Experiments
R
Rollouts

Developer API

C
API changelog
H
OpenAPI changes
Y
Endpoints
Q
Upcoming
P
API routes

Platform

V
Versions
K
Stickers
G
Games

Data & tools

T
Tools
F
Reference
O
Feeds & data

Keyboard shortcuts

CtrlK
Search everything
>
In search: run a command (theme, density, copy URL…)
/
Filter the current list
W
Watch the current page
JK
Older, newer build (Shift: with notes)
[
Collapse or expand the sidebar
,
Appearance
?
Keyboard shortcuts
Esc
Close

Press G and then a letter to jump straight to a page

Overview

D
Dashboard
A
Activity
J
This week
Z
Daily digests
N
News
W
Watchlist
U
Status

Client

B
Builds
X
Compare builds
S
Strings
L
Client flags
M
Mobile builds
I
Release stats

Experiments & rollouts

E
Experiments
R
Rollouts

Developer API

C
API changelog
H
OpenAPI changes
Y
Endpoints
Q
Upcoming
P
API routes

Platform

V
Versions
K
Stickers
G
Games

Data & tools

T
Tools
F
Reference
O
Feeds & data