code: func ToStatusErr(webhookName string, result *metav1.Status) *apierrors.StatusError {
  	deniedBy := fmt.Sprintf("admission webhook %q denied the request", webhookName)
  	const noExp = "without explanation"
  
  	if result == nil {
  		result = &metav1.Status{Status: metav1.StatusFailure}
  	}
  
  	switch {
  	case len(result.Message) > 0:
  		result.Message = fmt.Sprintf("%s: %s", deniedBy, result.Message)
  	case len(result.Reason) > 0:
  		result.Message = fmt.Sprintf("%s: %s", deniedBy, result.Reason)
  	default:
  		result.Message = fmt.Sprintf("%s %s", deniedBy, noExp)
  	}
  
  	return &apierrors.StatusError{
  		ErrStatus: *result,
  	}
  }
docs: // ToStatusErr returns a StatusError with information about the webhook plugin