Handling server errors in Flask

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Consider the following Flask application skeleton. If a 500 error occurs when handling a request, what behavior can we expect from this error handler configuration?

from flask import Flask, render_template

app = Flask(__name__)

@app.route('/')
def hello():
    return render_template('hello.html')

@app.errorhandler(500)
def server_error(e):
    return render_template('500_error.html'), 500
Select one or more options from the list
___

Create a free account to access the full topic