Table of Contents

Constructor HttpStatusInformation

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

HttpStatusInformation()

Creates an new HttpStatusInformation with default parameters (200 OK) status.

public HttpStatusInformation()

HttpStatusInformation(int)

Creates an new HttpStatusInformation instance with given parameters.

public HttpStatusInformation(int statusCode)

Parameters

statusCode int

Sets the numeric HTTP status code of the HTTP message.

HttpStatusInformation(HttpStatusCode)

Creates an new HttpStatusInformation instance with given parameters.

public HttpStatusInformation(HttpStatusCode statusCode)

Parameters

statusCode HttpStatusCode

Sets the numeric HTTP status code of the HTTP message.

HttpStatusInformation(int, string)

Creates an new HttpStatusInformation instance with given parameters.

public HttpStatusInformation(int statusCode, string description)

Parameters

statusCode int

Sets the numeric HTTP status code of the HTTP message.

description string

Sets the short description of the HTTP message.

Remarks

Custom status descriptions is only supported for plain HTTP/1.1 and 1.0 transfers.

Exceptions

ArgumentNullException