diff options
author | Simo Sorce <simo@redhat.com> | 2014-02-24 18:34:17 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-02-24 20:30:06 -0500 |
commit | 3574998f5f7c41e946610730638fd7e3fecb5835 (patch) | |
tree | af0fc74cd1ed071b66006f44ec5817b17e87ba09 /templates/internalerror.html | |
parent | f7070919e1350f784f639fd2054eab80384abeea (diff) | |
download | ipsilon-3574998f5f7c41e946610730638fd7e3fecb5835.tar.gz ipsilon-3574998f5f7c41e946610730638fd7e3fecb5835.tar.xz ipsilon-3574998f5f7c41e946610730638fd7e3fecb5835.zip |
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 <simo@redhat.com>
Diffstat (limited to 'templates/internalerror.html')
-rw-r--r-- | templates/internalerror.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/internalerror.html b/templates/internalerror.html new file mode 100644 index 0000000..9682c14 --- /dev/null +++ b/templates/internalerror.html @@ -0,0 +1,15 @@ +{% extends "master.html" %} +{% block main %} +<div class="col-sm-12"> + <h1>500 - Internal Server Error</h1> + {% if message: %} + <p>{{ message }}</p> + {% else %} + <p>Ipsilon encountered an unexpected internal error while trying to + fulfill your request.</p> + {% endif %} + <p>Please retry again.</p> + <p>If the error persists, contact the server administrator to resolve + the problem.</p> +</div> +{% endblock %} |