BotNetwork

Discord Gateway close codes (bot-oriented index)

Authoritative list: Discord opcodes and status codes documentation.

Official opcodes and status codes

Interactive lookup: Error code lookup

CodeMeaningTypical fix
4004Authentication failedCheck token
4013Invalid intent(s)Remove unknown bits
4014Disallowed intent(s)Enable privileged intents in portal
4010Invalid shardFix shard config
4011Sharding requiredShard the bot