code: func ReasonForError(err error) metav1.StatusReason {
  	switch t := err.(type) {
  	case APIStatus:
  		return t.Status().Reason
  	}
  	return metav1.StatusReasonUnknown
  }
docs: // ReasonForError returns the HTTP status for a particular error.