Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpResponse::Status Property

 

Sets the Status line that is returned to the client.

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

public:
property String^ Status {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

Setting the status code causes a string describing the status of the HTTP output to be returned to the client. The default value is 200 (OK).

Exception Condition
HttpException

Status is set to an invalid status code.

Status has been deprecated in favor of StatusDescription and is provided only for compatibility with earlier versions of ASP. With ASP.NET, use StatusDescription instead.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft