Export (0) Print
Expand All

HttpResponse.Status Property

Sets the Status line that is returned to the client.

[Visual Basic]
Public Property Status As String
public string Status {get; set;}
public: __property String* get_Status();
public: __property void set_Status(String*);
public function get Status() : String;
public function set Status(String);

Property Value

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 Type 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 previous versions of ASP. With ASP.NET, use StatusDescription instead.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace

© 2014 Microsoft