Method WithStatus
WithStatus<THttpResponse>(THttpResponse, int)
Sets the HTTP status code of this HttpResponse.
public static THttpResponse WithStatus<THttpResponse>(this THttpResponse response, int httpStatusCode) where THttpResponse : HttpResponse
Parameters
response
THttpResponseThe HttpResponse object.
httpStatusCode
intThe HTTP status code.
Returns
- THttpResponse
The self
THttpResponse
object.
Type Parameters
THttpResponse
The type which implements HttpResponse.
WithStatus<THttpResponse>(THttpResponse, HttpStatusCode)
Sets the HTTP status code of this HttpResponse.
public static THttpResponse WithStatus<THttpResponse>(this THttpResponse response, HttpStatusCode httpStatusCode) where THttpResponse : HttpResponse
Parameters
response
THttpResponseThe HttpResponse object.
httpStatusCode
HttpStatusCodeThe HTTP status code.
Returns
- THttpResponse
The self
THttpResponse
object.
Type Parameters
THttpResponse
The type which implements HttpResponse.
WithStatus<THttpResponse>(THttpResponse, in HttpStatusInformation)
Sets the HTTP status code of this HttpResponse.
public static THttpResponse WithStatus<THttpResponse>(this THttpResponse response, in HttpStatusInformation statusInformation) where THttpResponse : HttpResponse
Parameters
response
THttpResponseThe HttpResponse object.
statusInformation
HttpStatusInformationThe HTTP status information.
Returns
- THttpResponse
The self
THttpResponse
object.
Type Parameters
THttpResponse
The type which implements HttpResponse.