By default the page is set like this in the Application
module.config array:
\'template_map\' => array(
\'error/404\' => __DIR__ . \'/
in module.php
you can also change template and layout.
function onBootstrap(EventInterface $e) {
$app = $e->getApplication();
$evt = $app->getEventManager();
$evt->attach(MvcEvent::EVENT_DISPATCH_ERROR, array($this,'onDispatchError'), 100);
}
function onDispatchError(MvcEvent $e) {
$vm = $e->getViewModel();
$vm->setTemplate('layout/blank');
}