Share via


HttpResponseMessage.StatusCode Property

Definition

Gets or sets the status code of the HTTP response.

public:
 property HttpStatusCode StatusCode { HttpStatusCode get(); void set(HttpStatusCode value); };
HttpStatusCode StatusCode();

void StatusCode(HttpStatusCode value);
public HttpStatusCode StatusCode { get; set; }
var httpStatusCode = httpResponseMessage.statusCode;
httpResponseMessage.statusCode = httpStatusCode;
Public Property StatusCode As HttpStatusCode

Property Value

The status code of the HTTP response.

Applies to

See also