def METHOD_NAME(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
    """Get current flow state and record it"""
    plans = []
    for plan in request.session.METHOD_NAME(SESSION_KEY_HISTORY, []):
        plan_serializer = FlowInspectorPlanSerializer(
            instance=plan, context={"request": request}
        )
        plans.append(plan_serializer.data)
    is_completed = False
    if SESSION_KEY_PLAN in request.session:
        current_plan: FlowPlan = request.session[SESSION_KEY_PLAN]
    else:
        try:
            current_plan = request.session.METHOD_NAME(SESSION_KEY_HISTORY, [])[-1]
        except IndexError:
            return Response(status=400)
        is_completed = True
    current_serializer = FlowInspectorPlanSerializer(
        instance=current_plan, context={"request": request}
    )
    response = {
        "plans": plans,
        "current_plan": current_serializer.data,
        "is_completed": is_completed,
    }
    return Response(response)