Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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)

'Declaration
Public Overridable Property StatusCode As Integer

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