aboutsummaryrefslogtreecommitdiff
path: root/http_error_page.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_error_page.go')
-rw-r--r--http_error_page.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/http_error_page.go b/http_error_page.go
new file mode 100644
index 0000000..2dd1f4f
--- /dev/null
+++ b/http_error_page.go
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
+
+package main
+
+import (
+ "net/http"
+)
+
+func errorPage404(w http.ResponseWriter, params map[string]any) {
+ _ = templates.ExecuteTemplate(w, "404", params)
+}