> For the complete documentation index, see [llms.txt](https://docs.illuminate.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.illuminate.finance/smart-contracts/error-codes.md).

# Error Codes

<table><thead><tr><th width="97">Code</th><th>Description</th></tr></thead><tbody><tr><td>0</td><td>unauthorized</td></tr><tr><td>1</td><td>paused</td></tr><tr><td>2</td><td>incorrect maturity</td></tr><tr><td>3</td><td>incorrect underlying</td></tr><tr><td>4</td><td>array length mismatch</td></tr><tr><td>5</td><td>marketplace already set</td></tr><tr><td>6</td><td>invalid principal</td></tr><tr><td>7</td><td>market not matured</td></tr><tr><td>8</td><td>lender already set</td></tr><tr><td>9</td><td>market already exists</td></tr><tr><td>10</td><td>pool already exists</td></tr><tr><td>11</td><td>principal tokens not received</td></tr><tr><td>12</td><td>pool does not match principal token</td></tr><tr><td>13</td><td>underlying tokens not received</td></tr><tr><td>14</td><td>minimum fee not paid</td></tr><tr><td>15</td><td>zc token redemption failed</td></tr><tr><td>16</td><td>too much slippage</td></tr><tr><td>17</td><td>redemptions paused</td></tr><tr><td>18</td><td>no withdrawal scheduled</td></tr><tr><td>19</td><td>withdrawal still on hold</td></tr><tr><td>20</td><td>insufficient allowance</td></tr><tr><td>21</td><td>market is past maturity</td></tr><tr><td>22</td><td>decimals do not match</td></tr><tr><td>23</td><td>fee change is not scheduled</td></tr><tr><td>24</td><td>fee change is not ready yet</td></tr><tr><td>25</td><td>fee is set too high</td></tr><tr><td>26</td><td>principal token not set</td></tr><tr><td>27</td><td>pool does not match underlying token</td></tr><tr><td>28</td><td>compound redeem returned error</td></tr><tr><td>29</td><td>invalid periphery contract</td></tr><tr><td>30</td><td>reentrancy not allowed</td></tr><tr><td>31</td><td>rate limit exceeded for protocol</td></tr><tr><td>32</td><td>illuminate PTs may not be minted</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.illuminate.finance/smart-contracts/error-codes.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.
