Skip to main content

Host Status, Constants, and Error Codes

1 Host State Enum HostState​

  • UNAVAILABLE

  • WAITING

  • RUNNING

  • PLAYING

2 Error Code​

Core

Error CodeMeaningError Handling
0Success-
1Unknown ErrorRestart the host
2Invalid parameter, e.g., the value in options is illegalRestart the host
3Status is invalidRestart the host
10The WebView process was terminated by the iOS system, usually occurring when memory is insufficientRestart the host

Runtime

Error CodeMeaningError Handling
0Success-
9999Unknown ErrorRestart the host
9001Network connection is abnormalCheck network status
9002Network timeoutCheck network status
9003Host service request failedRestart the host
9004Host service request is abnormalRestart the host
9005Host login information has expiredReset Login Information
10001SDK not initializedInitialize SDK TJHostHandle.initialize
10002Host not initializedInitialize the host hostHandle.createGameHandle
10003Did not select to start the gamePass in the correct GameId
10004Game not foundPass in the correct GameId