def handle_unauthorized(req):
    '''Prepare the correct HTTP headers for a 401 response.

    @return     The Apache return code for 401 response.
    '''

    req.err_headers_out.add('WWW-Authenticate', 'NTLM')
    if use_basic_auth:
        req.err_headers_out.add('WWW-Authenticate', req.auth_name() % 'Basic realm="%s"')
    req.err_headers_out.add('Connection', 'close')
    return apache.HTTP_UNAUTHORIZED
dataset/ETHPy150Open Legrandin/PyAuthenNTLM2/pyntlm.py/handle_unauthorized/swapped operands of `%`