abort(status)
status:标注状态码,和异常
抛出异常后会终止当前函数
使用errorhandler装饰器捕获abort异常
@app.errorhandler(500) def internal_server_error(e): return '服务器搬家了'