code: 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
              );
          }
      }
docs: @param DataHandlerResult $result
  
  @return Response