diff options
Diffstat (limited to 'http_error_page.go')
-rw-r--r-- | http_error_page.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/http_error_page.go b/http_error_page.go index 77fdc86..0ddf055 100644 --- a/http_error_page.go +++ b/http_error_page.go @@ -23,3 +23,9 @@ func errorPage451(w http.ResponseWriter, params map[string]any, msg string) { params["complete_error_msg"] = msg _ = templates.ExecuteTemplate(w, "451", params) } + +func errorPage500(w http.ResponseWriter, params map[string]any, msg string) { + w.WriteHeader(http.StatusInternalServerError) + params["complete_error_msg"] = msg + _ = templates.ExecuteTemplate(w, "500", params) +} |