blob: b0db7f73c602e1ef64e7e12c98ad95f5fdc50e13 (
plain)
1
2
3
4
5
6
7
8
9
10
|
from app import app
from flask import render_template
@app.errorhandler(404)
def page_not_found(e):
return render_template('message.html',code=404,message="Whoops! Page Not Found"), 404
@app.errorhandler(500)
def page_server_error(e):
return render_template("message.html",code=500,message="Server Could Not Process This."), 500
|