@app.errorhandler(ExperimentError)<EOL>def handle_exp_error(exception):
app.logger.error(<EOL>"<STR_LIT>", exception.value, exception.errornum, str(dict(request.args))<EOL>)<EOL>return error_page(error_type=exception.value)<EOL>
Handle errors by sending an error page.