createRequest('GET', '/ogboot/v1/oglives/default'); if (isset($content['error']) && $content['code'] === Response::HTTP_INTERNAL_SERVER_ERROR ) { throw new BadRequestHttpException('An error occurred: ' . $content['error']. ' (' . $content['details'] . ')'); } return new JsonResponse(status: Response::HTTP_OK); } }