diff --git a/app/routes.py b/app/routes.py index 07a31e4..cb6a096 100644 --- a/app/routes.py +++ b/app/routes.py @@ -22,3 +22,6 @@ def buy_stock(): stock_name = request.form['name'] # Add logic to interact with smart contract return jsonify({'status': 'Stock purchased successfully'}) +@app.errorhandler(404) +def error(e): + return render_template("error_404.html") \ No newline at end of file diff --git a/templates/error_404.html b/templates/error_404.html new file mode 100644 index 0000000..5fe2601 --- /dev/null +++ b/templates/error_404.html @@ -0,0 +1,62 @@ + + +
+ + +The page you're looking for seems to have drifted into cyberspace.
+ + +