@handle_response_format
def user_denied(request, message='', response_format='html'):
    response = render_to_response('core/user_denied',
                                  {'message': message},
                                  context_instance=RequestContext(request), response_format=response_format)
    # response.status_code = 403
    return response
User denied page
dataset/ETHPy150Open treeio/treeio/treeio/core/views.py/user_denied