public function getResponseFromResult(DataHandlerResult $result): Response
    {
        if ($result->isValid()) {
            return new Response('', Response::HTTP_NO_CONTENT);
        } else {
            return new JsonResponse(
                $result->getErrors(),
                Response::HTTP_UNPROCESSABLE_ENTITY
            );
        }
    }
public function getResponseFromResult(DataHandlerResult $result): Response
    {
        if ($result->isValid()) {
            return new Response('', Response::HTTP_NO_CONTENT);
        } else {
            return new JsonResponse(
                $result->getErrors(),
                Response::HTTP_UNPROCESSABLE_ENTITY
            );
        }
    }
@param DataHandlerResult $result

@return Response