From 731ac84dca7de7c51aefa97e4e74335bb5203d9b Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Sat, 20 Jun 2020 15:53:27 +0200 Subject: [PATCH] 404 status code --- core/Documents/Document404.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/Documents/Document404.class.php b/core/Documents/Document404.class.php index 8ba2aa7..b93523e 100644 --- a/core/Documents/Document404.class.php +++ b/core/Documents/Document404.class.php @@ -53,6 +53,10 @@ namespace Documents\Document404 { parent::__construct($document); } + public function loadView() { + http_response_code(404); + } + public function getCode() { $html = parent::getCode(); $html .= "" . (new View404($this->getDocument())) . "";