From b6eff53f0c707ae5c20387525fc2499742d3712a Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Wed, 23 Aug 2023 18:16:34 +0200 Subject: [PATCH] Just set status code, do not hardcode HTTP version --- pages/error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/error.php b/pages/error.php index 2ec5aae..fb858e7 100644 --- a/pages/error.php +++ b/pages/error.php @@ -2,6 +2,6 @@ $HTML->setHTMLTitle("Seite nicht gefunden"); $HTML->build(); - header("HTTP/1.0 404 Not Found"); + http_response_code(404); echo $HTML->ausgabe(); ?> \ No newline at end of file