Gateway Close Codes
Gateway closes connections on protocol or authentication errors. Codes in 4000-4999 are application-level, issued by the server. For standard close codes (1000-1015), reconnecting is safe.
Reconnect: No means the issue cannot be fixed without developer action (wrong token, outdated API version). Looping reconnects will turn into a self-inflicted DoS.
| Code | Name | Reconnect | Description |
|---|---|---|---|
| 4012 | INVALID_API_VERSION | No | URL contains an unsupported v=. Use v=1. |