HttpListenerResponse.StatusCode Property

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

Namespace: System.Net
Assembly: System (in system.dll)

Syntax

public int StatusCode { get; set; }

Property Value

An Int32 value that specifies the HttpStatusCode for the requested resource. The default is OK, indicating that the server successfully processed the client's request and included the requested resource in the response body.

Version Information

Available in the .NET Micro Framework versions 4.0 and 4.1.

See Also

Reference

HttpListenerResponse Class
HttpListenerResponse Members
System.Net Namespace