title: Catch External API Error Message as in Postman Body
body: <p>I am using the following code to complete an External API call. </p>
  
  <pre><code>  WebResponse response = request.GetResponse();
  
    string JSONResult = null;
    var data = response.GetResponseStream();
    using (var reader = new StreamReader(data))
    {
      JSONResult = reader.ReadToEnd();
    }
  </code></pre>
  
  <p>When there is an exception on the external API, the request.GetResponse throws an error. However, I cannot get the message that is displayed, e.g. </p>
  
  <pre><code>{
          "Message": "No HTTP resource was found that matches the request URI '&lt;site&gt;/Foo'.",
          "MessageDetail": "No type was found that matches the controller named 'Foo'."
   }
  </code></pre>
  
  <p>Whilst this is displayed in Fiddler and Postman, I cannot get this message anywhere when it is thrown as an exception.</p>
  
  <p>How do I get this specific details when an error on an external API's call is made?</p>