> ## Documentation Index
> Fetch the complete documentation index at: https://injectivelabs-docs-ai-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Codes

This document lists the error codes used in the module.

| Module       | Error Code | description                                                          |
| ------------ | ---------- | -------------------------------------------------------------------- |
| tokenfactory | 2          | attempting to create a denom that already exists (has bank metadata) |
| tokenfactory | 3          | unauthorized account                                                 |
| tokenfactory | 4          | invalid denom                                                        |
| tokenfactory | 5          | invalid creator                                                      |
| tokenfactory | 6          | invalid authority metadata                                           |
| tokenfactory | 7          | invalid genesis                                                      |
| tokenfactory | 8          | subdenom too long, max length is %d bytes                            |
| tokenfactory | 9          | subdenom too short, min length is %d bytes                           |
| tokenfactory | 10         | nested subdenom too short, each one should have at least %d bytes    |
| tokenfactory | 11         | creator too long, max length is %d bytes                             |
| tokenfactory | 12         | denom does not exist                                                 |
| tokenfactory | 13         | amount has to be positive                                            |
