<filename>application/errors.py
from flask import render_template


def page_not_found(e):
    """ Renders template for 404 error

    Args:
        e: Error

    Returns: 404 error template

    """
    return render_template('errors/404.html', error=e), 404
<filename>application/errors.py
from flask import render_template


def page_not_found(e):
    """ Renders template for 404 error

    Args:
        e: Error

    Returns: 404 error template

    """
    return render_template('errors/404.html', error=e), 404
Renders template for 404 error      Args:         e: Error      Returns: 404 error template