createRequest('GET', '/ogboot/v1/pxe-templates'); if (isset($content['error']) && $content['error'] === Response::HTTP_INTERNAL_SERVER_ERROR ) { throw new ValidatorException('An error occurred: ' . $content['error']); } return new JsonResponse( data: $content, status: Response::HTTP_OK); } }