Name

StatusDescription

Synopsis

String = Response.StatusDescription
Response.StatusDescription = String

Returns or sets a String containing the text HTTP status message that will be sent to the browser along with the status code contained in the StatusCode property.

Parameters

String

A string variable to set or receive the additional path information. The default is “OK.”

Example

See the example for the StatusCode property.

Notes

As with other properties that set HTTP response headers, this property cannot be set once HTTP body output has been sent to the client (using Response.Write or similar methods) when buffering has been turned off.

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.