aboutsummaryrefslogtreecommitdiff
path: root/app/views/error_pages.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/error_pages.py')
-rw-r--r--app/views/error_pages.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/error_pages.py b/app/views/error_pages.py
new file mode 100644
index 0000000..b0db7f7
--- /dev/null
+++ b/app/views/error_pages.py
@@ -0,0 +1,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 \ No newline at end of file