code: func (c *CodebaseController) CheState(ctx *app.CheStateCodebaseContext) error {
  	ns, err := c.getCheNamespace(ctx)
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, goa.ErrInternal(err.Error()))
  	}
  	cheClient, err := c.NewCheClient(ctx, ns)
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, goa.ErrInternal(err.Error()))
  	}
  	cheState, err := cheClient.GetCheServerState(ctx)
  
  	if err != nil {
  		log.Error(ctx, map[string]interface{}{
  			"err": err,
  		}, "unable to get che server state")
  		if werr, ok := err.(*che.StarterError); ok {
  			log.Error(ctx, map[string]interface{}{
  				"err": err,
  			}, "unable to get che server state: %s", werr.String())
  		}
  		return jsonapi.JSONErrorResponse(ctx, goa.ErrInternal(err.Error()))
  	}
  
  	isRunning := cheState.Running
  	isMultiTenant := cheState.MultiTenant
  	isClusterFull := cheState.ClusterFull
  
  	state := app.CheServerState{
  		Running:     &isRunning,
  		MultiTenant: &isMultiTenant,
  		ClusterFull: &isClusterFull,
  	}
  	return ctx.OK(&state)
  }
docs: // CheState gets che server state.