Value | Meaning |
---|---|
NORMAL1000 | a normal, non-error close |
GOING_AWAY1001 | the client/server is going away |
PROTOCOL_ERROR1002 | a protocol error occurred |
UNSUPPORTED_DATA1003 | the endpoint received data of a type that it does not support. |
NO_STATUS1005 | reserved value indicating that no close code was present; must not be sent. |
ABNORMAL1006 | reserved value indicating that the connection was closed abnormally; must not be sent. |
BAD_DATA1007 | the endpoint received data that was invalid (eg, non-UTF-8 data in a text message). |
POLICY_VIOLATION1008 | generic error code indicating some sort of policy violation. |
TOO_BIG1009 | the endpoint received a message that is too big to process. |
NO_EXTENSION1010 | the client is closing the connection because the server failed to negotiate a required extension. |
SERVER_ERROR1011 | the server is closing the connection because it was unable to fulfill the request. |
TLS_HANDSHAKE1015 | reserved value indicating that the TLS handshake failed; must not be sent. |
Page generated by adrdox
Pre-defined close codes that can be passed to soup_websocket_connection_close() or received from soup_websocket_connection_get_close_code(). (However, other codes are also allowed.)