def render(self, request):
        def generateWWWAuthenticate(scheme, challenge):
            l = []
            for k,v in challenge.items():
                l.append(networkString("%s=%s" % (k, quoteString(v))))
            return b" ".join([scheme, b", ".join(l)])

        def quoteString(s):
            return '"%s"' % (s.replace('\\', '\\\\').replace('"', '\\"'),)

        request.setResponseCode(401)
        for fact in self._credentialFactories:
            challenge = fact.getChallenge(request)
            request.responseHeaders.addRawHeader(
                b'www-authenticate',
                generateWWWAuthenticate(fact.scheme, challenge))
        if request.method == b'HEAD':
            return b''
        return b'Unauthorized'
To create new push hook issue **POST** against */api/hooks-push/* as an authenticated user.
dataset/ETHPy150Open twisted/twisted/twisted/web/_auth/wrapper.py/UnauthorizedResource.render--crossover with--dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/logging/views.py/PushHookViewSet.list