title: How can I get the http body when python3 throws a HTTPError
body: <p>How can I get the <code>http</code> body when python3.2 throws a <code>HTTPError</code>.</p>
  
  <pre><code>Traceback (most recent call last):
      File "C:\Users\RileyRen\Desktop\query_token.py", line 17, in &lt;module&gt;
      File "D:\Environment\Python32\lib\urllib\request.py", line 495, in http_error_default
      raise HTTPError(req.full_url, code, msg, hdrs, fp)
      urllib.error.HTTPError: HTTP Error 401: Unauthorized
  </code></pre>
  
  <p>python throws an <code>HTTPError</code>,But I can't get the http body.</p>