input: Write a python function to monitor the amount of data retrieved from a web resource until a non-200 status code is received.
  assert monitor_web_resource("http://example.com") >= 0
  assert isinstance(monitor_web_resource("http://example.com"), int)
output: import requests
  
  def monitor_web_resource(url):
      total_data = 0
      while True:
          response = requests.get(url)
          if response.status_code != 200:
              break
          total_data += len(response.content)
      return total_data