error handling for HTTPError of open-uri.
Merge pull request #6 from hsbt/error-handling-httperror

Error handling for HTTPError of open-uri.