def incorrectLoginError(self, error, ctx, segments, loginFailure):
        request = inevow.IRequest(ctx)
        error.trap(UnauthorizedLogin)
        referer = request.getHeader("referer")
        if referer is not None:
            u = url.URL.fromString(referer)
        else:
            u = urlToChild(ctx, *segments)

        u = u.clear()
        u = u.add('login-failure', loginFailure)
        return u, ()
:reference: https://dev.twitter.com/rest/reference/get/friends/list
dataset/ETHPy150Open twisted/nevow/nevow/guard.py/SessionWrapper.incorrectLoginError--crossover with--dataset/ETHPy150Open tweepy/tweepy/tweepy/api.py/API.friends