EnsureSuccessStatusCode()

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()

Return Value

The current instance.

See Also