diff options
author | Runxi Yu <me@runxiyu.org> | 2025-04-01 22:16:48 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-04-01 22:16:48 +0800 |
commit | b4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8 (patch) | |
tree | 877008301b80f2dd4363ffb721a54344956af107 /http_error_page.go | |
parent | Change the main separator from : to - (diff) | |
download | forge-b4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8.tar.gz forge-b4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8.tar.zst forge-b4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8.zip |
Remind visitors of the change
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 |