code: func handleCmdResponse(cmd string, output []byte) (*DriverStatus, error) {
  	status := DriverStatus{
  		Capabilities: defaultCapabilities(),
  	}
  	if err := json.Unmarshal(output, &status); err != nil {
  		klog.Errorf("Failed to unmarshal output for command: %s, output: %q, error: %s", cmd, string(output), err.Error())
  		return nil, err
  	} else if status.Status == StatusNotSupported {
  		klog.V(5).Infof("%s command is not supported by the driver", cmd)
  		return nil, errors.New(status.Status)
  	} else if status.Status != StatusSuccess {
  		errMsg := fmt.Sprintf("%s command failed, status: %s, reason: %s", cmd, status.Status, status.Message)
  		klog.Errorf(errMsg)
  		return nil, fmt.Errorf("%s", errMsg)
  	}
  
  	return &status, nil
  }
docs: // handleCmdResponse processes the command output and returns the appropriate
  // error code or message.