mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Number error codes from 1 (fix #54)
This commit is contained in:
@@ -15,6 +15,8 @@ namespace http {
|
||||
|
||||
enum class parse_error
|
||||
{
|
||||
success = 0,
|
||||
|
||||
connection_closed,
|
||||
|
||||
bad_method,
|
||||
|
||||
@@ -16,8 +16,10 @@ namespace websocket {
|
||||
/// Error codes returned from @ref stream operations.
|
||||
enum class error
|
||||
{
|
||||
success = 0,
|
||||
|
||||
/// Both sides performed a WebSocket close
|
||||
closed = 1,
|
||||
closed,
|
||||
|
||||
/// WebSocket connection failed, protocol violation
|
||||
failed,
|
||||
|
||||
Reference in New Issue
Block a user