code: func v4WriteStatusFunc(stream io.Writer) func(status *apierrors.StatusError) error {
  	return func(status *apierrors.StatusError) error {
  		bs, err := json.Marshal(status.Status())
  		if err != nil {
  			return err
  		}
  		_, err = stream.Write(bs)
  		return err
  	}
  }
docs: // v4WriteStatusFunc returns a WriteStatusFunc that marshals a given api Status
  // as json in the error channel.