ResponseExtensions.SetStatus ResponseExtensions.SetStatus ResponseExtensions.SetStatus Method

Definition

Overloads

SetStatus(HttpResponseBase, Int32) SetStatus(HttpResponseBase, Int32) SetStatus(HttpResponseBase, Int32)

Sets the HTTP status code of an HTTP response using the specified integer value.

SetStatus(HttpResponseBase, HttpStatusCode) SetStatus(HttpResponseBase, HttpStatusCode)

Sets the HTTP status code of an HTTP response using the specified HTTP status code enumeration value.

SetStatus(HttpResponseBase, Int32) SetStatus(HttpResponseBase, Int32) SetStatus(HttpResponseBase, Int32)

Sets the HTTP status code of an HTTP response using the specified integer value.

public static void SetStatus (this System.Web.HttpResponseBase response, int httpStatusCode);
static member SetStatus : System.Web.HttpResponseBase * int -> unit
<Extension()>
Public Sub SetStatus (response As HttpResponseBase, httpStatusCode As Integer)
Parameters
response
HttpResponseBase HttpResponseBase HttpResponseBase

The HTTP response instance.

httpStatusCode
Int32 Int32 Int32

The HTTP status code.

SetStatus(HttpResponseBase, HttpStatusCode) SetStatus(HttpResponseBase, HttpStatusCode)

Sets the HTTP status code of an HTTP response using the specified HTTP status code enumeration value.

public static void SetStatus (this System.Web.HttpResponseBase response, System.Net.HttpStatusCode httpStatusCode);
static member SetStatus : System.Web.HttpResponseBase * System.Net.HttpStatusCode -> unit
Parameters
response
HttpResponseBase HttpResponseBase HttpResponseBase

The HTTP response instance.

httpStatusCode
HttpStatusCode HttpStatusCode HttpStatusCode

The HTTP status code

Applies to