HttpResponseMessage.StatusCode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.