All Products
Search
Document Center

:Error codes

Last Updated:Mar 31, 2026

When the SDK, BaaS-REST gateway, or MYTF returns an error, use the tables below to identify the cause and resolve it. Each table covers one layer of the stack:

  • SDK error codes — errors raised in the client SDK before or during communication with BaaS-REST

  • BaaS-REST error codes — errors returned by the BaaS-REST gateway while forwarding requests to MYTF

  • MYTF error codes — errors returned by MYTF while processing your request

Each table has four columns:

ColumnWhat it contains
Error codeThe symbolic constant you reference in code (for example, SDK_NULL_ERROR)
Error code valueThe numeric value returned at runtime (hex or decimal)
Error messageThe literal string included in the error response
DescriptionRoot cause and recommended fix

SDK error codes

The SDK raises these errors while running locally or communicating with the BaaS-REST gateway.

Error codeError code valueError messageDescription
SUCCESS0SuccessSuccess.
SDK_NULL_ERROR0x5000The return value is null errorA required parameter is empty. Check the error message for the specific field.
SDK_CONFIG_ERROR0x5001Failed to reading configuration fileThe configuration file is missing or contains invalid values. Verify the file path and syntax.
SDK_READ_FILE_ERROR0x5002Failed to get file input streamThe local file could not be opened. Check that the file path is correct and the file exists.
SDK_ENCODING_FAILED0x5003Encoding errorEncoding failed. Contact your administrator.
SDK_DECODING_FAILED0x5004Decoding errorDecoding failed. Contact your administrator.
SDK_PARSE_ERROR0x5005Failed to parsing dataData parsing failed. Check that the data format matches the expected schema.
SDK_AUTH_DATA_ERROR0x5010authorize data is invalidThe authorization data is incorrect. Verify your credentials and authorization payload.
SDK_INVALID_KEYPAIR0x5100The keypair is invalidThe key pair format is invalid. Check that the key pair was generated using the correct algorithm and format.
SDK_GENERATE_KEY_ERROR0x5101Key generation errorLocal key generation failed. Check the local SDK configuration.
SDK_BUILD_ENVELOPE_ERROR0x5102Envelope seal errorEnvelope encryption failed. Verify that the key pair was generated correctly.
SDK_DECRYPT_ENVELOPE_ERROR0x5103Envelope open errorEnvelope decryption failed. Verify that the key pair was generated correctly.
SDK_ENCRYPT_ERROR0x5104Encryption errorEncryption failed. Verify that the key pair was generated correctly.
SDK_DECRYPT_ERROR0x5105Decryption errorDecryption failed. Verify that the key pair was generated correctly.
SDK_SIGN_MESSAGE_FAILED0x5106Failed to sign a messageMessage signing failed. Verify that the key pair was generated correctly.
SDK_VERIFY_SIGNATURE_FAILED0x5107The signature is invalidSignature verification failed. Call getMYTFInfo and getTAPPInfo again to get the latest MYTFInfo and TAPPInfo, then update the local MYTF and TAPP signing public keys.
SDK_VERIFY_TRUSTROOT_FAILED0x5108Failed to verify trust rootTrust root verification failed. Check that the trust root information is correct.
SDK_VERIFY_HASH_FAILED0x5109The hash is not equal to the expected hashHash validation failed. Contact your administrator.
SDK_INVALID_CURVE0x510Acurve type not supportedThe specified elliptic curve is not supported by this algorithm.
SDK_INVALID_REQ_PARAMETER0x5200Request parameters are invalidA request parameter is invalid. Check each parameter value against the API reference.
SDK_UNSUPPORT_ENGINE_TYPE_FAILED0x5201Unsupported execution engine typeThe execution engine type is not supported. Verify that the engine type is set to WASM.
SDK_BAAS_REST_HANDSHAKING_FAILED0x5202Failed to Handshake with BaaS's REST APIHandshake with the BaaS-REST gateway failed. Check the BaaS-REST endpoint and configuration.
SDK_BAAS_REST_MYTFCALL_FAILED0x5203Failed to Call MYTF through BaaS's REST APIThe MYTF call through BaaS-REST failed. Contact your administrator.

BaaS-REST error codes

The BaaS-REST gateway returns these errors while forwarding your requests to MYTF.

Error codeError code valueError messageDescription
BAAS_REST_SUCCESS200SuccessSuccess.
BAAS_REST_INVALID_ACCESS_TOKEN202Access token is null or expiredThe access token is incorrect or has expired. Restart the client to get a new access token.
BAAS_REST_INVALID_REQUEST400Access DenyThe user does not have permission to access MYTF resources. Check the domain and region configuration.
BAAS_REST_DOMAIN_REGION_ERROR404Cannot find MYTF for this domain or regionThe C3S domain or region was not found. Check that the domain and region values in your configuration are correct.
BAAS_REST_THROW_EXCEPTION_ERROR500Unknown ErrorAn unknown error occurred. The service may be temporarily unavailable due to a timeout or an ongoing update. Retry the request.

MYTF error codes

MYTF returns these errors while processing your request.

Error codeError code valueError messageDescription
MYTF_SUCCESS0x0000successSuccess.
TAPP_REQ_EXCEED_LIMIT0x2002tapp request exceed limitThe request body exceeds the TAPP size limit. Reduce the payload size and retry.
TAPP_REQ_HEADER_NOT_MATCH0x2003tapp request header and body not matchThe TAPP request header and body are mismatched. Contact your administrator.
TAPP_RES_EXCEED_LIMIT0x2004tapp response exceed limitThe TAPP response exceeds the size limit. Reduce the response payload in your contract logic.
TAPP_INVALID_ENC_PK_ERROR0x2006invalid user pkThe encryption public key is invalid. Check the public key format.
TAPP_NON_EXIST_ERROR0x2007tapp does not existThe TAPP was not found. Verify that the TAPP was installed successfully and that the TAPP ID is correct.
TAPP_EXISTED_ERROR0x2008tapp already existedA TAPP with this ID already exists and cannot be reinstalled. Use a different TAPP ID.
TAPP_INVALID_ID0x2009invalid id formatThe TAPP ID is invalid. Check the ID length and character set.
TAPP_INVALID_VERSION0x200Ainvalid tapp versionThe TAPP version is too low. Upgrade to a supported version.
TAPP_INVALID_BYTECODE0x200Binvalid tapp bytecodeThe TAPP contract bytecode is invalid. Check the compiler version and verify that the bytecode size is within limits.
TAPP_INVALID_PROPERTY0x200Cinvalid tapp propertiesThe TAPP extension properties are invalid. Check that the extension properties do not exceed the size limit.
TAPP_INVALID_DESCRIPTION0x200Dinvalid tapp descriptionThe TAPP description is invalid. Check that the description does not exceed the size limit.
TAPP_INVALID_ENGINE0x200Einvalid tapp exec engineThe TAPP execution engine is not supported. Check the specified engine type.
TAPP_INVALID_METHOD0x200Finvalid tapp methodThe execution method is invalid. Verify that the contract includes this method.
TAPP_INVALID_ARGS0x2010invalid tapp argsThe TAPP runtime parameters are invalid. Check that the input parameters match the contract's expected types and values.
TAPP_EXCEED_LIMIT0x2011tapp number exceed max limitThe number of server-side TAPPs has reached the limit. Contact your administrator to increase the limit.
TAPP_VM_CREATE_FAILED0x2100create exe engine failedExecution engine initialization failed. Contact your administrator.
TAPP_WASM_INIT_FAILED0x2101init wasm failedWebAssembly (Wasm) virtual machine initialization failed. Check the compiler version.
TAPP_WASM_EXEC_FAILED0x2102no wasm functionTAPP execution failed. Contact your administrator.
TAPP_WASM_EXEC_INTERRUPTED0x2103execute wasm interruptedTAPP execution was interrupted by an exception. Contact your administrator.
EXT_INVALID_TYPE_ERROR0x2200invalid ext service typeThe external service type is not recognized. Check that you specified a supported service type.
EXT_NON_EXIST_ERROR0x2201ext service does not existThe external service was not found. Verify that the service is registered and the identifier is correct.
EXT_CONNECTION_ERROR0x2202not able to connect to ext serviceConnection to the external service failed. Check that the service is reachable and the connection configuration is correct.
OS_UNKNOWN_ERROR0x4000Oracle service unknown errorAn unknown error occurred in the Oracle service. Contact your administrator.
OS_DOMAIN_REGION_DOES_NOT_EXIST0x4001Domain or region does not existThe domain name or region name in your configuration does not exist. Check the domain and region values.
OS_GRPC_REQ_TIMEOUT0x4002grpc request timeoutThe gRPC request timed out because the computation took too long. Simplify the request or contact your administrator if the issue persists.
OS_IDENTITY_DATA_ERROR0x4003invalid authorize dataAuthorization failed. Verify your authorization data and credentials.
OS_PERMISSION_DENY0x4004user does not have access privilegesPermission denied. Check that the user account has the required access privileges for this operation.
OS_TAPP_MAX_LIMIT0x4005user installed tapp exceeds max limitThe number of TAPPs installed by this user has reached the limit. Contact your administrator to increase the limit.
OS_TAPP_DELETED_ERROR0x4006same tapp already deletedThis TAPP has already been deleted.