# Return Code

<table><thead><tr><th width="137">Error Code</th><th>External Description</th></tr></thead><tbody><tr><td>0</td><td>Success</td></tr><tr><td>401</td><td>User not login</td></tr><tr><td>402</td><td>App key not exist</td></tr><tr><td>403</td><td>Wallet address not in whitelist during testing period</td></tr><tr><td>40000</td><td>General error</td></tr><tr><td>40001</td><td>Fail to register</td></tr><tr><td>40002</td><td>Fail to get node info</td></tr><tr><td>40003</td><td>Invalid session</td></tr><tr><td>40004</td><td>Fail to register account key</td></tr><tr><td>40005</td><td>Fail to register permission key</td></tr><tr><td>40006</td><td>Fail to assign default data key to self</td></tr><tr><td>40007</td><td>User not exist</td></tr><tr><td>40008</td><td>Fail to create table</td></tr><tr><td>40009</td><td>The data type of the encryption column doesn't match the data key (possibly caused by altering an encrypted column type or re-creating a table with the same column name and different encryption type)</td></tr><tr><td>40010</td><td>Data key not exist</td></tr><tr><td>40011</td><td>Fail to find table</td></tr><tr><td>40012</td><td>Fail to drop table</td></tr><tr><td>40013</td><td>Fail to drop cocoon which contains table</td></tr><tr><td>40014</td><td>Cocoon not exist</td></tr><tr><td>40015</td><td>Fail to delete App key</td></tr><tr><td>40016</td><td>Fail to grant permission</td></tr><tr><td>40017</td><td>Fail to execute SQL</td></tr><tr><td>40019</td><td>Fail to query permission key ID by wallet address</td></tr><tr><td>40020</td><td>Fail to query permission key ID by account ID</td></tr><tr><td>40021</td><td>Fail to list all tables</td></tr><tr><td>40022</td><td>Table not exist</td></tr><tr><td>40024</td><td>Fail to link table to cocoon</td></tr><tr><td>40025</td><td>Create cocoon error</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mindnetwork.xyz/mind-lake-sdk/typescript-api-reference/return-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
