HttpResponseMessage.EnsureSuccessStatusCode Method ()
.NET Framework (current version)
Throws an exception if the IsSuccessStatusCode property for the HTTP response is false.
Assembly: System.Net.Http (in System.Net.Http.dll)
Return Value
Type: System.Net.Http.HttpResponseMessageThe HTTP response message if the call is successful.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Show: