RelayedHttpListenerResponse.StatusCode Property

Definition

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

public System.Net.HttpStatusCode StatusCode { get; set; }
member this.StatusCode : System.Net.HttpStatusCode with get, set
Public Property StatusCode As HttpStatusCode

Property Value

System.Net.HttpStatusCode

Exceptions

System.ObjectDisposedException

This object is closed.

System.Net.ProtocolViolationException

The value specified for a set operation is not valid. Valid values are between 100 and 999 inclusive.

Applies to