HttpResponseExtensions.IsSuccessStatusCode(HttpResponse) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determine if the response has a success status code.
public static bool IsSuccessStatusCode (this Microsoft.AspNetCore.Http.HttpResponse response);
static member IsSuccessStatusCode : Microsoft.AspNetCore.Http.HttpResponse -> bool
<Extension()>
Public Function IsSuccessStatusCode (response As HttpResponse) As Boolean
Parameters
- response
- HttpResponse
The response.
Returns
True if the response has a success status code; false otherwise.