API
HttpResponseMessage.EnsureSuccessStatusCode
Throws for a non-success HTTP status.
Formal Syntax & Structure
csharp syntaxcsharp
response.EnsureSuccessStatusCode()Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.response.EnsureSuccessStatusCode()