HttpResponseMessage::EnsureSuccessStatusCode Method
Throws an exception if the IsSuccessStatusCode property for the HTTP response is false.
Namespace: System.Net.Http
Assembly: System.Net.Http (in System.Net.Http.dll)
Return Value
Type: System.Net.Http::HttpResponseMessageReturns HttpResponseMessage.The HTTP response message if the call is successful.
Show: