Export (0) Print
Expand All

HttpResponseBase.StatusCode Property

Gets or sets the HTTP status code of the output that is returned to the client.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual int StatusCode { get; set; }

Property Value

Type: System.Int32
The status code of the HTTP output that is returned to the client. For information about valid status codes, see HTTP Status Codes on the MSDN Web site.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft