createRequest('DELETE', '/ogboot/v1/pxes/'.$mac); 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: [], status: Response::HTTP_OK); } }