diff options
Diffstat (limited to 'http_error_page.go')
-rw-r--r-- | http_error_page.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/http_error_page.go b/http_error_page.go index 85ad859..00ef04b 100644 --- a/http_error_page.go +++ b/http_error_page.go @@ -18,6 +18,11 @@ func errorPage400(w http.ResponseWriter, params map[string]any, msg string) { _ = templates.ExecuteTemplate(w, "400", params) } +func errorPage400Colon(w http.ResponseWriter, params map[string]any) { + w.WriteHeader(http.StatusBadRequest) + _ = templates.ExecuteTemplate(w, "400_colon", params) +} + func errorPage403(w http.ResponseWriter, params map[string]any, msg string) { w.WriteHeader(http.StatusForbidden) params["complete_error_msg"] = msg |