public Optional<Output<Integer>> errorCode() {
        return Optional.ofNullable(this.errorCode);
    }
@return errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.

This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
sdk/java/src/main/java/com/pulumi/kubernetes/storage/v1/inputs/VolumeErrorArgs.java