func ToOrdererStatusCode(c int32) common.Status {
	return ToFabricCommonStatusCode(c)
}
ToOrdererStatusCode cast to peer status
package status
import (
	"strconv"
	"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/common"
	pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"
	grpcCodes "google.golang.org/grpc/codes"
)
type Code uint32
const (
	OK Code = 0
	Unknown Code = 1
	ConnectionFailed Code = 2
	EndorsementMismatch Code = 3
	EmptyCert Code = 4
	Timeout Code = 5
	NoPeersFound Code = 6
	MultipleErrors Code = 7
)
var CodeName = map[int32]string{
	0: "OK",
	1: "UNKNOWN",
	2: "CONNECTION_FAILED",
	3: "ENDORSEMENT_MISMATCH",
	4: "EMPTY_CERT",
	5: "TIMEOUT",
	6: "NO_PEERS_FOUND",
	7: "MULTIPLE_ERRORS",
}
func (c Code) ToInt32() int32 {
	return int32(c)
}
func (c Code) String() string {
	if s, ok := CodeName[c.ToInt32()]; ok {
		return s
	}
	return strconv.Itoa(int(c))
}
func ToSDKStatusCode(c int32) Code {
	return Code(c)
}
func ToGRPCStatusCode(c int32) grpcCodes.Code {
	return grpcCodes.Code(c)
}
func ToPeerStatusCode(c int32) common.Status {
	return ToFabricCommonStatusCode(c)
}