{% extends "base.html" %} {% block page %}
{% if error_code == 404 %} {% elif error_code >= 500 %} {% elif error_code == 401 %} {% else %} {% endif %}

{% if error_code == 404 %} Not Found {% elif error_code >= 500 %} Server Error {% elif error_code == 401 %} Authentication Required {% else %} Access Denied {% endif %}

{% if error_code == 404 %} The requested resource could not be found. {% elif error_code >= 500 %} An unexpected server error occurred. {% elif error_code == 401 %} Please log in to continue. {% else %} You don't have permission to access this page. {% endif %}

{{ message|default("Unauthorized Access") }}

{% if detail %}

{{ detail }}

{% else %}

{% if error_code == 404 %} Please check that the URL is correct or contact an administrator if you believe this is an error. {% elif error_code >= 500 %} Please try again later or contact an administrator if the problem persists. {% elif error_code == 401 %} You must be logged in to access this resource. {% else %} Please verify your credentials or contact an administrator if you believe this is an error. {% endif %}

{% endif %}
{% if next %} Return to Safety {% endif %}
{% if next %}{% endif %} {% if auto_redirect %} {% endif %} {% endblock %} {% block scripts %} {% endblock %}