From a0f4582d26578bfde0de941309da7ce1477e8e8e Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Mon, 5 Nov 2018 02:41:42 -0500 Subject: Return code 404 when displaying the 404 page To be more compliant with the HTTP standard, we will _actually_ return '404 Not Found' status when we decide to show the 404 view. A status of '200 OK' is misleading and incorrect. Signed-off-by: Malf Furious --- app/index.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/index.php b/app/index.php index 21f3036..7395c6f 100644 --- a/app/index.php +++ b/app/index.php @@ -119,6 +119,7 @@ function main(array $argv) : void /* page not found */ else { + header("HTTP/1.1 404 Not Found"); require "view/404.php"; } } -- cgit v1.2.3