From 088325073247e2f7bc85fd3baafdad1ea6a635a5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 22 Mar 2025 11:53:04 +0800 Subject: Add HTTP 451 --- templates/400.tmpl | 2 +- templates/451.tmpl | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 templates/451.tmpl (limited to 'templates') diff --git a/templates/400.tmpl b/templates/400.tmpl index 1fcd5d9..d141ed5 100644 --- a/templates/400.tmpl +++ b/templates/400.tmpl @@ -13,7 +13,7 @@ {{- template "header" . -}}

400 Bad Request

-

{{- .bad_request_msg -}}

+

{{- .complete_error_msg -}}


Lindenii Forge
diff --git a/templates/451.tmpl b/templates/451.tmpl new file mode 100644 index 0000000..114fde6 --- /dev/null +++ b/templates/451.tmpl @@ -0,0 +1,25 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileContributor: Runxi Yu +*/}} +{{- define "451" -}} + + + + {{- template "head_common" . -}} + 451 Unavailable For Legal Reasons – {{ .global.forge_title }} + + + {{- template "header" . -}} +
+

451 Unavailable For Legal Reasons

+

{{- .complete_error_msg -}}

+
+
Lindenii Forge
+
+ + + +{{- end -}} -- cgit v1.2.3