add some more custom config and put every thing in comment in the custom.yaml template
{% extends "site/layout/base.html" %}
{% load i18n %}
{% block content %}
<h1>404: {% blocktrans %}Page not found{% endblocktrans %}</h1>
{% blocktrans %}The requested page could not be found.{% endblocktrans %}
{% endblock %}