aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/templates/http-error-5xx.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-09 11:51:37 -0500
committerFrederick Muriuki Muriithi2025-07-09 11:57:25 -0500
commit1740ccbe30946aa6693a6a9ed8211a2ff7cfbf3d (patch)
treeaf5b89ba28a39cd859ae943e8882f39f5ae54069 /gn_auth/templates/http-error-5xx.html
parente7a89061cba689268daf4991038d9bec763a06d3 (diff)
downloadgn-auth-main.tar.gz
Improve error handling and reporting.HEADmain
- Refactor out common functionality into reusable utilities - Handle errors from the Authlib library/package - Handle 4xx errors generically.
Diffstat (limited to 'gn_auth/templates/http-error-5xx.html')
-rw-r--r--gn_auth/templates/http-error-5xx.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/gn_auth/templates/http-error-5xx.html b/gn_auth/templates/http-error-5xx.html
new file mode 100644
index 0000000..859a232
--- /dev/null
+++ b/gn_auth/templates/http-error-5xx.html
@@ -0,0 +1,25 @@
+{%extends "base.html"%}
+
+{%block title%}
+{{error.status_code or 500}}: {{error.description or "Generic Exception"}}
+{%endblock%}
+
+{%block pagetitle%}
+{{error.status_code or 500}}: {{error.description or "Generic Exception"}}
+{%endblock%}
+
+{%block content%}
+
+<p>The system has done something it should not! This is our fault.</p>
+
+<p>
+ Please send us the details below to help us figure out what we did wrong and
+ fix it.
+</p>
+
+<div class="row">
+ <p><strong>URI: {{page}}</p>
+ <pre>{{"".join(trace)}}</pre>
+</div>
+
+{%endblock%}