createRequest('GET', '/ogboot/v1/pxes/'.$client->getName()); if (isset($content['error']) && $content['code'] === Response::HTTP_INTERNAL_SERVER_ERROR) { return new JsonResponse( data: 'An error occurred', status: Response::HTTP_INTERNAL_SERVER_ERROR); } return new JsonResponse( data: $response, status: Response::HTTP_OK); } }