By default the page is set like this in the Application module.config array:
\'template_map\' => array(
\'error/404\' => __DIR__ . \'/
The First thing is to create the views :
modules/Yourapplication/view/yourapplication/error/index.phtml
modules/Yourapplication/view/yourapplication/error/404.phtml
The second thing is to register the views in the module config:
In module.config.php of your application
'view_manager' => array(
//[...]
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
'template_map' => array(
//[...]
'error/404' => __DIR__ . '/../view/yourapplication/error/404.phtml',
'error/index' => __DIR__ . '/../view/yourapplication/error/index.phtml',
),
// [...]
),