404 status code

This commit is contained in:
Roman Hergenreder 2020-06-20 15:53:27 +02:00
parent b2cb0c4bf3
commit 731ac84dca

@ -53,6 +53,10 @@ namespace Documents\Document404 {
parent::__construct($document); parent::__construct($document);
} }
public function loadView() {
http_response_code(404);
}
public function getCode() { public function getCode() {
$html = parent::getCode(); $html = parent::getCode();
$html .= "<body>" . (new View404($this->getDocument())) . "</body>"; $html .= "<body>" . (new View404($this->getDocument())) . "</body>";