From 3574998f5f7c41e946610730638fd7e3fecb5835 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 24 Feb 2014 18:34:17 -0500 Subject: Use cherrypy handlers to render error pages Replaces custom code to render 401 Unauthorized page as well as adds 400 and 500 handlers Signed-off-by: Simo Sorce --- templates/badrequest.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 templates/badrequest.html (limited to 'templates/badrequest.html') diff --git a/templates/badrequest.html b/templates/badrequest.html new file mode 100644 index 0000000..25a2731 --- /dev/null +++ b/templates/badrequest.html @@ -0,0 +1,12 @@ +{% extends "master.html" %} +{% block main %} +
+

400 - Bad Request

+ {% if message: %} +

{{ message }}

+ {% else %} +

Your client made a request that could not be understood.

+

Sorry!

+ {% endif %} +
+{% endblock %} -- cgit