HttpResponseWrapper::Status Property

 

Sets the Status value that is returned to the client.

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

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

Property Value

Type: System::String^

The status of the HTTP output. The default value is "200 (OK)". For information about valid status codes, see HTTP Status Codes on the MSDN Web site.

Exception Condition
HttpException

Status is set to an invalid status code.

.NET Framework
Available since 3.5
Return to top
Show: