diff --git a/src/templates/400.html b/src/templates/400.html
new file mode 100644
index 0000000..e69de29
diff --git a/src/templates/405.html b/src/templates/405.html
new file mode 100644
index 0000000..54c3ffd
--- /dev/null
+++ b/src/templates/405.html
@@ -0,0 +1,10 @@
+{% extends "root.html" %}
+{% block title %}FOTB - 405 :({% endblock %}
+
+{% block main %}
+{{ super() }}
+
+
405
+ Method not allowed!
+
+{% endblock %}
\ No newline at end of file
diff --git a/src/views/errors.py b/src/views/errors.py
index a6b1d1d..833d0ba 100644
--- a/src/views/errors.py
+++ b/src/views/errors.py
@@ -24,6 +24,17 @@ error_pages = flask.Blueprint('error_pages', __name__, template_folder='template
def page_not_found_error(e):
return flask.render_template("404.html"), 404
+
@error_pages.app_errorhandler(500)
def internal_server_error(e):
return flask.render_template("500.html"), 500
+
+
+@error_pages.app_errorhandler(405)
+def method_not_allowed_error(e):
+ return flask.render_template("405.html"), 405
+
+
+@error_pages.app_errorhandler(400)
+def bad_request_error(e):
+ return flask.render_template("400.html"), 400