[url=https://dev.1c-bitrix.ru/api_d7/detail.php?ID=1776035]process404[/url]
void public static
\Bitrix\Iblock\Component\Tools::process404(
string $message = "",
boolean $defineConstant = true,
boolean $setStatus = true,
boolean $showPage = false,
string $pageFile = ""
);
Performs actions enabled by its parameters.
Parameters
ParameterDescriptionVersion
$messageMessage to show with bitrix:system.show_message component.
$defineConstantIf true then ERROR_404 constant defined.
$setStatusIf true sets http response status.
$showPageIf true then work area will be cleaned and /404.php will be included.
$pageFileAlternative file to /404.php.
Examples