def _loginFailed(self, result):
        if result.check(error.Unauthorized, error.LoginFailed):
            return UnauthorizedResource(self._credentialFactories)
        else:
            log.err(
                result,
                "HTTPAuthSessionWrapper.getChildWithDefault encountered "
                "unexpected error")
            return ErrorPage(500, None, None)
Handle login failure by presenting either another challenge (for
dataset/ETHPy150Open twisted/twisted/twisted/web/_auth/wrapper.py/HTTPAuthSessionWrapper._loginFailed