# Application::end()

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

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

## Сигнатура

```php
public end([int $status = 0 ][, Response|null $response = null ]) : void
```

## Описание

Sends response and then terminates execution.
If there is no $response the method will use Context::$response.

## Параметры

- `$status` `int` — необязательный, по умолчанию `0`
- `$response` `Response|null` — необязательный, по умолчанию `null`

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

`void`

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