# File lib/bundler/fetcher/dependency.rb, line 7 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