def json_error(status_code, message):
 r = jsonify(message=message)
 r.status_code = status_code
 return r

def json_error ( status_code , message ) : r = jsonify ( message = message ) r . status_code = status_code return r
return a json object with a http error code .