From 68a43dc318fb7d76544d704752f243b9afed7e52 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 13 Jun 2024 15:04:28 -0500 Subject: Handle HTTP errors gracefully. --- qc_app/templates/http-error.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 qc_app/templates/http-error.html (limited to 'qc_app/templates/http-error.html') diff --git a/qc_app/templates/http-error.html b/qc_app/templates/http-error.html new file mode 100644 index 0000000..6a74ae8 --- /dev/null +++ b/qc_app/templates/http-error.html @@ -0,0 +1,18 @@ +{%extends "base.html"%} + +{%block title%}HTTP Error: {{exc.code}}{%endblock%} + +{%block contents%} +
+ You attempted to access {{request_url}} which failed with the following + error: +
+{{trace}}+