Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Status Property

HttpResponse.Status Property

Sets the Status line that is returned to the client.

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

public string Status { get; set; }

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).

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft