change rescue to rescue OpenURI::HTTPError