 <p>You use a try..catch block to catch the Exception, then add whatever error handling logic is appropriate.</p> <pre><code>try { var response = authClient.Post&lt;AccessTokenResponse&gt;(authRequest); response.EnsureSuccessStatusCode(); } catch (WebException ex) { // something bad happened, add whatever logic is appropriate to notify the // user, log the error, etc... Console.Log(ex.Message); } </code></pre>