System::Net::Http::HttpResponseMessage::EnsureSuccessStatusCode method

HttpResponseMessage::EnsureSuccessStatusCode method

Checks the status code. HttpRequestException will be thrown when the status code doesn’t belong to 2xx.

System::SharedPtr<HttpResponseMessage> System::Net::Http::HttpResponseMessage::EnsureSuccessStatusCode()

ReturnValue

The current instance.

See Also