> For the complete documentation index, see [llms.txt](https://docs.mindnetwork.xyz/mind-lake-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindnetwork.xyz/mind-lake-sdk/typescript-api-reference/return-code.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
