Since 3.2.0, error codes have been renumbered according to the cross-platform unified table as “iOS prefix
103 + low 3 digits”. Enum names are kept but their values changed, so you must recompile with the new headers. The “3.1.2 and earlier” column below lists the old values; for details, see the Changelog.Error code rules
0: success103000–103999: SDK local errors. Full code =103+ the low 3 digits of the unified table, e.g.103006=103+006(connection failed). The low 3 digits mean the same as on other platforms1000–99999: backend business codes, passed through by the SDK as is without a prefix. For their meanings, see Server API error codes
errCode of engineChannel:onDisconnected:errCode:errMsg: and onImDisconnected:errCode:errMsg: follows the same rules. When an API that only returns an error code hits a backend business code, read RTCEngineKit.lastServerErrorMessage immediately to get the server-side message (since 3.2.1; language follows RTCEngineKit.language). Branch on the error code, not on the error message: errMsg comes from the backend and is for logging only.