Generic error handlers for Flask blueprints.