153154155156157158159160161162163
// Failed authentications turn up here if (e2.getStatusCode() == 401) { return new AuthFailedException("Authentication failed."); } else { return new ConnectionException(e2); } } else { // one of our own NIPAP-errors?