title: How can I handle 503 errors with open-uri?
body: <p>If a website returns a '503 service unavailable' error then open-uri throws an exception. For example:</p>
  
  <pre><code>require 'open-uri'
  open('http://www.google.co.uk/sorry/?continue=http://www.google.co.uk/search%3Fq%3Dhello%26oq%3Dhello%26ie%3DUTF-8')
  # OpenURI::HTTPError: 503 Service Unavailable
  # ...
  </code></pre>
  
  <p>However if you then visit it in a web browser, it actually displays a page with a CAPTCHA and not an error.</p>
  
  <p>How can I make sure open-uri doesn't just throw this as an exception but actually handles the response and provides me with the page content?</p>