diff --git a/construction.go b/construction.go index e36badb..7901d10 100644 --- a/construction.go +++ b/construction.go @@ -284,8 +284,9 @@ func viewHouseStats(app *app, w http.ResponseWriter, r *http.Request) error { if err != nil { page = []byte("HTMLlot.") } + w.WriteHeader(http.StatusNotFound) fmt.Fprintf(w, "%s", page) - return nil + return err } } return err