@app.errorhandler(412)
def precond_failed(e):
    envs = environments()
    return render_template('412.html', envs=envs), 412
We're slightly abusing 412 to handle missing features
dataset/ETHPy150Open voxpupuli/puppetboard/puppetboard/app.py/precond_failed