<filename>app/main/error.py
from flask import render_template
from . import main

@main.errorhandler(404)
def four_Ow_four(error):
    '''
    Function that Renders the 404 Page
    '''
    return render_template('fourOWfour.html'),404