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:
property int StatusCode {
	virtual int get();
	virtual void set(int value);
}

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.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: