Share via


ResponseExtensions.SetStatus Method

Include Protected Members
Include Inherited Members

Sets the HTTP status code of an HTTP response.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member SetStatus(HttpResponseBase, Int32) Sets the HTTP status code of an HTTP response using the specified integer value.
Public methodStatic member SetStatus(HttpResponseBase, HttpStatusCode) Sets the HTTP status code of an HTTP response using the specified HTTP status code enumeration value.

Top

See Also

Reference

ResponseExtensions Class

System.Web.WebPages Namespace