Beast Logo

PrevUpHomeNext

websocket::error

Error codes returned from websocket::stream operations.

enum error

Values

closed

Both sides performed a WebSocket close.

failed

WebSocket connection failed, protocol violation.

handshake_failed

Upgrade request failed, connection is closed.

keep_alive

Upgrade request failed, but connection is still open.

response_malformed

HTTP response is malformed.

response_failed

HTTP response failed the upgrade.

response_denied

Upgrade request denied for invalid fields.

request_malformed

Upgrade request is malformed.

request_invalid

Upgrade request fields incorrect.

request_denied

Upgrade request denied.

general

General WebSocket error.

Requirements

Header: beast/websocket/error.hpp

Convenience header: beast/websocket.hpp


PrevUpHomeNext