def _jsonify_error(exc, title, message, code):
    error_data = {'title': title, 'message': message, 'error_uuid': (g.get('saved_error_uuid') if _is_error_reportable(exc) else None)}
    response = jsonify(error=error_data)
    response.status_code = code
    return response
def _jsonify_error(exc, title, message, code):
    error_data = {'title': title, 'message': message, 'error_uuid': (g.get('saved_error_uuid') if _is_error_reportable(exc) else None)}
    response = jsonify(error=error_data)
    response.status_code = code
    return response