Empty Null, false, or an empty string will automatically be converted to 404 error page /site/config/config.php return [ 'routes' => [ [ 'pattern' => 'custom/response', 'action' => function () { return false; } ] ] ];