using System;
using Cpp2IlInjected;
namespace System.Net.WebSockets
{
/// Contains the list of possible WebSocket errors.
// Token: 0x0200032C RID: 812
[Token(Token = "0x200032C")]
public enum WebSocketError
{
/// Indicates that there was no native error information for the exception.
// Token: 0x04000DF2 RID: 3570
[Token(Token = "0x4000DF2")]
Success,
/// Indicates that a WebSocket frame with an unknown opcode was received.
// Token: 0x04000DF3 RID: 3571
[Token(Token = "0x4000DF3")]
InvalidMessageType,
/// Indicates a general error.
// Token: 0x04000DF4 RID: 3572
[Token(Token = "0x4000DF4")]
Faulted,
/// Indicates that an unknown native error occurred.
// Token: 0x04000DF5 RID: 3573
[Token(Token = "0x4000DF5")]
NativeError,
/// Indicates that the incoming request was not a valid websocket request.
// Token: 0x04000DF6 RID: 3574
[Token(Token = "0x4000DF6")]
NotAWebSocket,
/// Indicates that the client requested an unsupported version of the WebSocket protocol.
// Token: 0x04000DF7 RID: 3575
[Token(Token = "0x4000DF7")]
UnsupportedVersion,
/// Indicates that the client requested an unsupported WebSocket subprotocol.
// Token: 0x04000DF8 RID: 3576
[Token(Token = "0x4000DF8")]
UnsupportedProtocol,
/// Indicates an error occurred when parsing the HTTP headers during the opening handshake.
// Token: 0x04000DF9 RID: 3577
[Token(Token = "0x4000DF9")]
HeaderError,
/// Indicates that the connection was terminated unexpectedly.
// Token: 0x04000DFA RID: 3578
[Token(Token = "0x4000DFA")]
ConnectionClosedPrematurely,
/// Indicates the WebSocket is an invalid state for the given operation (such as being closed or aborted).
// Token: 0x04000DFB RID: 3579
[Token(Token = "0x4000DFB")]
InvalidState
}
}