<?php throw new Wire404Exception(); // or redirect to 404 page $session->redirect($pages->get("/http404/")->url);