discord-is.fun
ReferenceGateway

Gateway close codes

WebSocket close codes from the gateway, and whether reconnecting makes sense.

14 / 14
CodeNameReconnectExplanation
4000Unknown errorYesWe're not sure what went wrong. Try reconnecting?
4001Unknown opcodeYesYou sent an invalid Gateway opcode or an invalid payload for an opcode. Don't do that!
4002Decode errorYesYou sent an invalid payload to Discord. Don't do that!
4003Not authenticatedYesYou sent us a payload prior to identifying, or this session has been invalidated.
4004Authentication failedNoThe account token sent with your identify payload is incorrect.
4005Already authenticatedYesYou sent more than one identify payload. Don't do that!
4007Invalid seqYesThe sequence sent when resuming the session was invalid. Reconnect and start a new session.
4008Rate limitedYesWoah nelly! You're sending payloads to us too quickly. Slow it down! You will be disconnected on receiving this.
4009Session timed outYesYour session timed out. Reconnect and start a new one.
4010Invalid shardNoYou sent us an invalid shard when identifying.
4011Sharding requiredNoThe session would have handled too many guilds - you are required to shard your connection in order to connect.
4012Invalid API versionNoYou sent an invalid version for the gateway.
4013Invalid intent(s)NoYou sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise value.
4014Disallowed intent(s)NoYou sent a disallowed intent for a Gateway Intent. You may have tried to specify an intent that you have not enabled or are not approved for.
↑ ↓ 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