When an SDK request fails, the returned error will not be empty and will include error code, error message, and other information required for troubleshooting to help developers fix the problem quickly.
There are mainly three types of returned error codes (encapsulated in the returned error): error codes returned by the device for network reasons, custom error codes returned by the SDK client at the network layer, and error codes returned by COS.
|Error Code||Error Message||Error Description|
|20001||InvalidArgument||The server returned invalid data|
|20004||PoorNetwork||Data integrity check failed|
|30000||UserCancelled||Canceled by user|
|30002||AlreadyFinished||Task already completed|