class Bundler::Fetcher::Dependency

def api_available?

def api_available?
  downloader.fetch(dependency_api_uri)
rescue NetworkDownError => e
  raise HTTPError, e.message
rescue AuthenticationRequiredError
  # We got a 401 from the server. Just fail.
  raise
rescue HTTPError
end