title: Ruby Open-URI library aborted in 404 HTTP error code
body: <p>I use OpenURI library.  </p>
  
  <pre><code>object = open("http://example.com")
  </code></pre>
  
  <p>If <a href="http://example.com">http://example.com</a> server code response is equals to 200 my program acts as I expected.
  But if <a href="http://example.com">http://example.com</a> server response code is equals to 400 (or other) then script aborts with OpenURI::HTTPError: 404 Not Found.<br>
  I can avoid this if I use 'begin-rescue' construction and handle 'HTTPError exception'.<br>
  Is this a correct way?
  Should I use Net/Http library instead of OpenURI to handle all cases?</p>