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