

def send_wsgi_error_response(message, start_response, cors_handler=None):
    body = json.dumps({
        'error': {
            'message': message,
        },
    })
    return send_wsgi_response('500', [('Content-Type', 'application/json')], body, start_response, cors_handler=cors_handler)

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/endpoints/util.py send_wsgi_error_response/original