Skip to content

Instantly share code, notes, and snippets.

@ByteDev
Last active July 16, 2021 10:02
Show Gist options
  • Save ByteDev/a9562a57cad047c73e36621275d16b08 to your computer and use it in GitHub Desktop.
Save ByteDev/a9562a57cad047c73e36621275d16b08 to your computer and use it in GitHub Desktop.
var response = await client.SendAsync(request);

if (response.StatusCode == HttpStatusCode.BadRequest)
{
    var details = await response.Content.ReadAsStringAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment