Error codes
If an error occurs when you call an API, an error response is returned, where the object result
indicates the error code (resultCode
) and error message (resultMessage
). You can use error codes and messages to troublshoot issues.
Error codes are usually classified into the following categories:
- Common error codes: are common for all Mini Program OpenAPIs. Â
- API-specific error codes: are dedicated to a specific OpenAPI.
Common error codes
The following table lists all common error codes for Mini Program OpenAPIs. If you do not find an error code in the following table, it means that the error code is not common, but dedicated to a specific OpenAPI.
API-specific error codes
For error codes that are dedicated to a specific API, see the Error codes section in each API specification, for example, /v1/authorizations/applyToken.