> For the complete documentation index, see [llms.txt](https://docs.gnoswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gnoswap.io/contracts/errors/router.md).

# Router

The following table outlines potential errors that may occur during interactions with the router contract in GnoSwap:

| Code               | Message                                       |
| ------------------ | --------------------------------------------- |
| GNOSWAP-ROUTER-001 | slippage check failed                         |
| GNOSWAP-ROUTER-002 | invalid routes and quotes                     |
| GNOSWAP-ROUTER-003 | transaction expired                           |
| GNOSWAP-ROUTER-004 | invalid input data                            |
| GNOSWAP-ROUTER-005 | invalid pool fee tier                         |
| GNOSWAP-ROUTER-006 | invalid swap fee                              |
| GNOSWAP-ROUTER-007 | invalid swap type                             |
| GNOSWAP-ROUTER-008 | invalid pool path                             |
| GNOSWAP-ROUTER-009 | unauthorized caller                           |
| GNOSWAP-ROUTER-010 | number of hops must be 1\~3                   |
| GNOSWAP-ROUTER-011 | cannot swap same token                        |
| GNOSWAP-ROUTER-013 | invalid route path                            |
| GNOSWAP-ROUTER-014 | invalid route first token                     |
| GNOSWAP-ROUTER-015 | invalid route last token                      |
| GNOSWAP-ROUTER-016 | invalid swap amount                           |
| GNOSWAP-ROUTER-017 | route hop disconnected                        |
| GNOSWAP-ROUTER-018 | insufficient balance for swap                 |
| GNOSWAP-ROUTER-019 | rlm does not match the current crossing frame |
| GNOSWAP-ROUTER-020 | insufficient liquidity for swap               |
