Piotr Czajkowski 1 viikko sitten
vanhempi
sitoutus
0319b041ce
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      server.go

+ 1 - 1
server.go

@@ -26,7 +26,7 @@ func init() {
 }
 
 func returnErorr(w http.ResponseWriter, err string) {
-	w.WriteHeader(http.StatusNotFound)
+	w.WriteHeader(http.StatusBadRequest)
 	t := template.Must(template.ParseFiles("./html/error.html"))
 	t.Execute(w, err)
 }