def create_response(headers, body, status):
 response = Response((body or ''))
 for (k, v) in headers.items():
  response.headers[str(k)] = v
 response.status_code = status
 return response

def create_response ( headers , body , status ) : response = Response ( ( body or '' ) ) for ( k , v ) in headers . items ( ) : response . headers [ str ( k ) ] = v response . status_code = status return response
create response class for flask .