WebSocket Status Codes
A protocol providing full-duplex communication channels over a single TCP connection. Close codes indicate why a connection was terminated.
View Specification →1000-1015 WebSocket Close Codes
IANA-registered WebSocket close status codes (RFC 6455).
The connection has been closed cleanly, meaning the purpose for which it was established has been fulfilled. Both endpoints agree …
An endpoint is going away, such as a server shutting down or a browser navigating away from the page. The …
An endpoint is terminating the connection because it received data that violates the WebSocket protocol specification.
An endpoint received a type of data it cannot accept. For example, a text-only endpoint received a binary message, or …
A reserved value that indicates no status code was present in the Close frame. This code must not be set …
A reserved value indicating the connection was closed abnormally without a Close frame being sent. This code must not be …
An endpoint received a message with payload data that is inconsistent with the message type. For example, a text message …
An endpoint is terminating the connection because it received a message that violates its policy. This is a generic code …
An endpoint is terminating the connection because it received a message that is too large for it to process.
The client is terminating the connection because the server did not negotiate one or more expected extensions in the handshake …
The server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.
The server is terminating the connection because it is restarting. The client should reconnect after a brief delay.
The server is terminating the connection due to a temporary condition, such as being overloaded. The client should reconnect after …
The server acting as a gateway or proxy received an invalid response from an upstream server it accessed while attempting …
A reserved value indicating the connection was closed because the TLS handshake failed. This code must not be set by …