C-DEngine 5.105

HttpListenerResponse..::..StatusCode Property

Gets or sets the HTTP status code returned to the client.

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public int StatusCode { get; set; }
Public Property StatusCode As Integer
	Get
	Set
public:
property int^ StatusCode {
	int^ get ();
	void set (int^ value);
}

Field Value

An Int32 that represents the status code for the response to the request. The default value is same as OK.

Exceptions


ExceptionCondition
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.