def METHOD_NAME(self, request: Request, *args, **kwargs) -> HttpResponse:
    if request.method != "POST":
        return HttpResponse(status=405)
    return super().METHOD_NAME(request, *args, **kwargs)