def METHOD_NAME(request, reason="Unknown CSRF Failure"):
    """
    Custom view for users who encounter CSRF errors.
    https://docs.djangoproject.com/en/1.9/ref/settings/#csrf-failure-view
    """
    capture_message(reason, level="error")
    response = TemplateResponse(
        request=request, template="403_csrf.html", status=403
    )
    return response