System.Web.HttpWorkerRequest.SendStatus Method

Specifies the HTTP status code and status description of the response, such as SendStatus(200, "Ok").

Syntax

public abstract void SendStatus (int statusCode, string statusDescription)

Parameters

statusCode
The status code to send
statusDescription
The status description to send.

Remarks

This methods sends the HTTP status response to the client.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0