@app.errorhandler(401)
def unauthorized(e):
    error = {'message': 'Unauthorized'}
    return flask.jsonify(errors=[error]), 401
Issue an HTTP 401 Unauthorized response with a JSON body.
dataset/ETHPy150Open wikimedia/ifttt/ifttt/core.py/unauthorized