def _CheckSuccessful(response):
  """Checks if the request was successful.

  Args:
    response: An HTTP response that contains a mapping from 'status' to an
              HTTP response code integer.

  Returns:
    True if the request was succesful.
  """
  return "status" in response and 200 <= int(response["status"]) < 300