Constant EXTENSION

Source
pub const EXTENSION: u16 = 1010; // 1_010u16
Expand description

Indicates that an endpoint (client) is terminating the connection because the server did not respond to extension negotiation correctly.

Specifically, the client has expected the server to negotiate one or more extension(s), but the server didn’t return them in the response message of the WebSocket handshake. The list of extensions that are needed should be given as the reason for closing. Note that this status code is not used by the server, because it can fail the WebSocket handshake instead.