mscorlib(4.0.0.0) API with additions
WebSocketCloseStatus.cs
1 namespace System.Net.WebSockets
2 {
4  public enum WebSocketCloseStatus
5  {
7  NormalClosure = 1000,
9  EndpointUnavailable = 1001,
11  ProtocolError = 1002,
13  InvalidMessageType = 1003,
15  Empty = 1005,
17  InvalidPayloadData = 1007,
19  PolicyViolation = 1008,
21  MessageTooBig = 1009,
23  MandatoryExtension = 1010,
25  InternalServerError = 1011
26  }
27 }
WebSocketCloseStatus
Represents well known WebSocket close codes as defined in section 11.7 of the WebSocket protocol spec...
(1001) Indicates an endpoint is being removed. Either the server or client will become unavailable.
(1008) The connection will be closed because an endpoint has received a message that violates its pol...
(1007) The client or server is terminating the connection because it has received data inconsistent w...
Equivalent to HTTP status 500. F:System.Net.HttpStatusCode.InternalServerError indicates that a gener...
The response received from the server was complete but indicated a protocol-level error....
(1000) The connection has closed after the request was fulfilled.
(1010) The client is terminating the connection because it expected the server to negotiate an extens...
(1003) The client or server is terminating the connection because it cannot accept the data type it r...