Return Codes

The following table lists the return codes of internal TaskD APIs.

Table 1 Return codes of internal TaskD APIs

Return Code

Value

Meaning

NilMessage

4000

Empty message

NilHeader

4001

Empty message header

NilPosition

4002

Empty location information

DstRoleIllegal

4003

Invalid destination role

DstSrvRankIllegal

4004

Invalid server rank of the destination role

DstProcessRankIllegal

4005

Invalid process rank of the destination role

DstTypeIllegal

4006

Invalid destination role type

ClientErr

4999

TaskD client error

RecvBufNil

5000

Empty receiver buffer

RecvBufBusy

5001

Blocked receiver buffer

NoRoute

5002

No route path

ExceedMaxRegistryNum

5003

TaskD network registrations exceeding the upper limit

ServerErr

5999

TaskD server error

NetworkSendLost

6000

Message loss

NetworkAckLost

6001

Message ACK loss

NetStreamNotInited

6002

gRPC stream not initialized

NetErr

6999

TaskD network error