Answers for "ensuresuccessstatuscode exception"

C#
1

ensuresuccessstatuscode exception

var response = await client.GetAsync(...);
if (response.IsSuccessStatusCode)
{
    // Handle success
}
else
{
    // Handle failure
}
Posted by: Guest on December-09-2020

C# Answers by Framework

Browse Popular Code Answers by Language