Perhaps use `response.kind_of? Net::HTTPSuccess` to avoid magic numbers.