false, 'verify_host' => false, ]); try { $response = $httpClient->request('GET', 'http://'.$this->ogDhcpApiUrl.'/ogdhcp/v1/status', [ 'headers' => [ 'accept' => 'application/json', ], ]); } catch (TransportExceptionInterface $e) { return new JsonResponse( data: 'An error occurred', status: Response::HTTP_INTERNAL_SERVER_ERROR); } return json_decode($response->getContent(), true); } }