diff --git a/http.go b/http.go index 0c970da..b958d85 100644 --- a/http.go +++ b/http.go @@ -12,7 +12,7 @@ func (k *Kasse) GetLoginPage(res http.ResponseWriter, req *http.Request) { if err := ExecuteTemplate(res, TemplateInput{Title: "Login", Body: "login.html"}); err != nil { k.log.Println("Could not render template:", err) - http.Error(res, "Internal error", 500) + http.Error(res, "Internal error", http.StatusInternalServerError) return } } diff --git a/templates/login.html b/templates/login.html index ff509f9..c9ed49e 100644 --- a/templates/login.html +++ b/templates/login.html @@ -2,11 +2,11 @@