--- /dev/null
+{% extends "error.html" %}
+
+{% block bigbox_headline %}
+ {{ _("400 - Bad request") }}
+{% end block %}
+
+{% block bigbox_subtitle %}
+ <small>{{ _("Invalid data has been passed to the application.") }}</small>
+{% end block %}
+
+{% block explanation %}
+ <p>
+ {{ _("The application refused to go on with the provided data that was sent in this request.") }}
+ </p>
+{% end block %}
+
+{% block message %}{% end block %}
{% extends "error.html" %}
{% block bigbox_headline %}
- {{ _("Access forbidden") }}
+ {{ _("403 - Access forbidden") }}
{% end block %}
{% block bigbox_subtitle %}
return tornado.web.RequestHandler.render_string(self, *args, **kwargs)
def get_error_html(self, status_code, exception=None, **kwargs):
- error_document = "error.html"
+ error_document = "errors/error.html"
kwargs.update({
"code" : status_code,
"message" : httplib.responses[status_code],
})
- if status_code in (403, 404):
- error_document = "error-%s.html" % status_code
+ if status_code in (400, 403, 404):
+ error_document = "errors/error-%s.html" % status_code
# Collect more information about the exception if possible.
if exception: