{% extends "_layout.html" %} {% block title %}{{ status }}: {{ error }}{% endblock %} {% block content %}

{{ status }}

{{ error }}!


{%- if exception and exception.description %}

{{ exception.description | safe }}

{%- elif status == 400 %}

{{ _('It seems you have done something naughty.') }}

{%- elif status == 403 %}

{{ _('It seems you do not have sufficient permissions to access this resource.') }}

{%- elif status == 404 %}

{{ _('We have looked hard, really really hard, but what you were looking for is just not there.') }}

{%- elif status == 405 %}

{{ _('You have used HTTP method that is not valid for this URL.') }}

{%- elif status == 410 %}

{{ _('What you were looking for is just not there anymore, it is gone forever.') }}

{%- elif status == 500 %}

{{ _('We are sorry, but something on our side of the line went terribly wrong. Please try again later.') }}

{%- else %} {%- if message %}

{{ message }}

{%- else %}

{{ _('We are sorry, but something went wrong. Please try again later.') }}

{%- endif %} {%- endif %}
{%- if permission_can('developer') %}
{{ macros_site.render_raw_var('status', status) }} {{ macros_site.render_raw_var('error', error) }} {{ macros_site.render_raw_var('message', message) }} {{ macros_site.render_raw_var('exception', exception) }} {{ macros_site.render_raw_var('description', exception.description) }} {%- endif %} {% endblock %}