From ffbc027d648205097403f12bb1e2f1919be6874f Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 13 Aug 2023 01:41:58 +0400 Subject: [PATCH] Add missing 404 response code. --- cmd/dwelling-home/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/dwelling-home/main.go b/cmd/dwelling-home/main.go index cdecc1e..1bf2345 100644 --- a/cmd/dwelling-home/main.go +++ b/cmd/dwelling-home/main.go @@ -54,6 +54,7 @@ func main() { r := httpr.New() r.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNotFound) web.ErrorXXX("/ Not Found", "", "", r.Referer(), http.StatusNotFound, w) }