title: Capturing Response Body for a HTTP Error in python
body: <p>Need to capture the response body for a HTTP error in python. Currently using the python request module's raise_for_status(). This method only returns the Status Code and description. Need a way to capture the response body for a detailed error log.</p>
  
  <p>Please suggest alternatives to python requests module if similar required feature is present in some different module. If not then please suggest what changes can be done to existing code to capture the said response body.</p>
  
  <p>Current implementation contains just the following:</p>
  
  <pre><code>resp.raise_for_status()
  </code></pre>