title: Retrieving Response Body from HTTP POST
body: <p>I'm POSTing to API that is returning a 409 response code along with a response body that looks like this:</p>
  
  <pre><code>    { 
         "message": "Exception thrown.",
         "errorDescription": "Object does not exist"
      }
  </code></pre>
  
  <p>How can I pull out the Response Body and deserialize it?</p>
  
  <p>I am using HttpClient:</p>
  
  <pre><code>    HttpClient client = new HttpClient();
      client.BaseAddress = new Uri("http://localhost:60129");
  
      var model = new Inspection
      {
          CategoryId = 1,
          InspectionId = 0,
          Descriptor1 = "test descriptor 121212",
          Name = "my inspection 1121212"
      };
  
      var serializer = new JavaScriptSerializer();
      var json = serializer.Serialize(model);
      var stringContent = new StringContent(json, Encoding.UTF8, "application/json");
  
      var result = client.PostAsync("api/Inspections/UpdateInspection", stringContent);
  
      var r = result.Result;
  </code></pre>
  
  <p>I seems like such a common thing to do, but I'm struggling to find where the data is in my result.</p>