Fix 401 error for unauthticated requests to non-existing repos
_The documentation is not available anymore as the PR was closed or merged._
The hub now returns 401 instead of 404 for unauthenticated requests to non-existing repos.
This PR add support for the 401 error and fixes the CI fails on `master`