# HtmlContent::__construct()

URL: https://chugunov.pro/api-bitrix/main/engine/response/htmlcontent/__construct/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс: [`\Bitrix\Main\Engine\Response\HtmlContent`](https://chugunov.pro/api-bitrix/main/engine/response/htmlcontent/)
Модуль: Main.
Свойства элемента: method, public.

## Сигнатура

```php
public __construct(ContentAreaInterface $content[, string $status = \self::STATUS_SUCCESS ][, ErrorCollection|null $errorCollection = null ][, array<string|int, mixed> $additionalResponseParams = [] ]) : mixed
```

## Параметры

- `$content` `ContentAreaInterface` — обязательный
- `$status` `string` — необязательный, по умолчанию `\self::STATUS_SUCCESS`
- `$errorCollection` `ErrorCollection|null` — необязательный, по умолчанию `null`
- `$additionalResponseParams` `array<string|int, mixed>` — необязательный, по умолчанию `[]`

## Возвращаемое значение

`mixed`

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Main-Engine-Response-HtmlContent.html
