Custom Error Pages
Custom error pages are created by default in Project Zero. These pages are 400, 403, 404 and 500 pages and their files are located under the templates directory. If you want to create a page other than these error codes, you need to create an html file under the templates directory. For example, templates/502.html file should be created for 502 error. The contents of this sample file are as follows.
{% extends 'layout/base.html' %}
{% block content %}
<section>
<h2>502 Bad Gateway</h2>
<a href="/">{{ _('Return to homepage') }}</a>
</section>
{% endblock %}