Odpowiedź błędu powrotu kolby

@app.route('/')
def index():
    resp = make_response("Record not found", 400)
    resp.headers['X-Something'] = 'A value'
    return resp
Classy Answer