@app.route('/raise-500', methods=['GET'])
@requires_auth
def raise_500():
 raise ValueError('Foo!')

@ app . route ( '/raise-500' , methods = [ 'GET' ] ) @ requires_auth def raise_500 ( ) : raise ValueError ( 'Foo!' )
this exists for testing error_500_handler .