Create better error messages
Currently, there is no Util class to handle errors.
Ideally, when an error happens I'd like to return something like
@app.route('/tea', methods=['GET'])
def tea():
tea_type = request.args.get('type')
if tea_type == "Coffee":
return Util.error("The server refuses the attempt to brew coffee with a teapot.", 418)
return Tea(tea_type)
Before rolling our own solution, make sure to research how other Flask based projects handle errors.