code: func (r *ErrorReporter) AsObject(err error) runtime.Object {
  	status := NewGenericServerResponse(r.code, r.verb, schema.GroupResource{}, "", err.Error(), 0, true)
  	if status.ErrStatus.Details == nil {
  		status.ErrStatus.Details = &metav1.StatusDetails{}
  	}
  	reason := r.reason
  	if len(reason) == 0 {
  		reason = "ClientError"
  	}
  	status.ErrStatus.Details.Causes = append(status.ErrStatus.Details.Causes, metav1.StatusCause{
  		Type:    metav1.CauseType(reason),
  		Message: err.Error(),
  	})
  	return &status.ErrStatus
  }
docs: // AsObject returns a valid error runtime.Object (a v1.Status) for the given
  // error, using the code and verb of the reporter type. The error is set to
  // indicate that this was an unexpected server response.