Constructor HttpStatusInformation
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
intSets 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
HttpStatusCodeSets 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
intSets the numeric HTTP status code of the HTTP message.
description
stringSets the short description of the HTTP message.
Remarks
Custom status descriptions is only supported for plain HTTP/1.1 and 1.0 transfers.