HttpListenerResponse..::..StatusCode Property
Gets or sets the HTTP status code returned to the client.
Namespace:
WebSocketSharp.NetAssembly: C-DEngine (in C-DEngine.dll)
Syntax
Field Value
An Int32 that represents the status code for the response to the request. The default value is same as OK.Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | The response has already been sent. |
| ObjectDisposedException | This object is closed. |
| [System.Net.ProtocolViolationException] | The value specified for a set operation is invalid. Valid values are between 100 and 999 inclusive. |