404 status code
This commit is contained in:
1 parent
b2cb0c4bf3
commit
731ac84dca
1 file changed
+4
@@ -53,6 +53,10 @@ namespace Documents\Document404 {
|
||||
parent::__construct($document);
|
||||
}
|
||||
|
||||
public function loadView() {
|
||||
http_response_code(404);
|
||||
}
|
||||
|
||||
public function getCode() {
|
||||
$html = parent::getCode();
|
||||
$html .= "<body>" . (new View404($this->getDocument())) . "</body>";
|
||||
|
||||
Reference in new issue
Block a user