Piotr Czajkowski hai 1 semana
pai
achega
0319b041ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 }