title: Python request.head(): How to get response code using python request module instead of Exception
body: <p>It returns the 200, 301 and some other responses as expected. But when i try to get responses of some non existent website, instead of returning codes, it throws exception. Below is the code when i tried to get response code for "www.googl.com", I'm expecting a response code for this scenario.Even i can handle it in <code>try</code> and <code>except</code> but actually i need response code.</p>
  
  <p>Code:</p>
  
  <pre><code>import requests
  
  print (requests.head("https://www.googl.com"))
  </code></pre>