Put in order · Python course · Module 5: Flask and Web Apps
Handling 404 error
Arrange the code for handling a 404 error in Flask:
Items to put in order
- return render_template('404.html'), 404
- @app.errorhandler(404)
- def not_found(error):
You can check the correct answer by solving this task in the CodeWorlds game.