From c6f1f30dabddd35263626fad800de468476cef5e Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Wed, 24 Sep 2025 16:28:14 +0200 Subject: [PATCH] make 404 page status code actually 404 --- src/website/pages/notfound.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/website/pages/notfound.rs b/src/website/pages/notfound.rs index da7c2c1..f4e5fc9 100644 --- a/src/website/pages/notfound.rs +++ b/src/website/pages/notfound.rs @@ -13,7 +13,7 @@ struct PageNotFound; pub async fn page_notfound() -> Response { let a = PageNotFound; match a.render() { - Ok(res) => (StatusCode::OK, Html(res)).into_response(), + Ok(res) => (StatusCode::NOT_FOUND, Html(res)).into_response(), Err(_e) => (StatusCode::INTERNAL_SERVER_ERROR, INTERNAL_SERVER_ERROR_MSG).into_response(), } }