code: func getTreeStatus(c context.Context, host string) *ui.TreeStatus {
  	q := url.Values{}
  	q.Add("format", "json")
  	url := url.URL{
  		Scheme:   "https",
  		Host:     host,
  		Path:     "current",
  		RawQuery: q.Encode(),
  	}
  
  	status := &ui.TreeStatus{}
  	if err := getJSONData(c, url.String(), 30*time.Second, status); err != nil {
  		// Generate a fake tree status.
  		logging.WithError(err).Errorf(c, "loading tree status")
  		status = &ui.TreeStatus{
  			GeneralState: "maintenance",
  			Message:      "could not load tree status",
  		}
  	}
  
  	return status
  }
docs: // getTreeStatus returns the current tree status from the chromium-status app.
  // This never errors, instead it constructs a fake purple TreeStatus