def METHOD_NAME(status, headers):
    # Keep the fake response in-sync with the actual values
    # from the WSGI start_response call.
    response.setStatus(status.split()[0])
    for key, value in headers:
        response.setHeader(key, value)
    wsgi_headers.write(
        b'HTTP/1.1 ' + status.encode('ascii') + b'\r\n')
    headers = b'\r\n'.join([
        (k + ': ' + v).encode('ascii') for k, v in headers])
    wsgi_headers.write(headers)
    wsgi_headers.write(b'\r\n\r\n')