All tools / Gateway
Voice close code explainer
Look up a voice gateway close code and whether the client should reconnect, resume, or stop.
Result
Not the main gateway
Voice close codes share numbers with the main gateway but mean different things. 4014 means you were disconnected (kicked, or the main session dropped) and should not reconnect. 4015 means the voice server crashed: resume. 4021 is a rate-limit disconnect and 4022 means the call ended (channel deleted or voice server changed); neither should reconnect. 4017 means the channel requires the DAVE protocol.
Related: Voice gateway opcode lookup · Gateway close code explainer