# Error Codes

* `RATE_LIMITED`: The client is sending commands too fast. It should retry in a few seconds.
* `NOT_IMPLEMENTED`: The command is not known or is intentionally not implemented.
* `INSUFFICIENT_BALANCE`: The wallet does not have enough funds to cover a fee reserve or the payment amount.
* `QUOTA_EXCEEDED`: The wallet has exceeded its spending quota.
* `RESTRICTED`: This public key is not allowed to do this operation.
* `UNAUTHORIZED`: This public key has no wallet connected.
* `INTERNAL`: An internal error. Examples:
  * some required service is down which caused the request to fail,&#x20;
  * failure to save something to the database,&#x20;
  * some unexpected error occurred while processing a request.
* `OTHER`: Other error.

Please, [join the Discord community](https://discord.nwc.dev/) or [reach out](mailto:hello@getalby.com) directly if you encounter unknown errors or other problems during the implementation.


---

# 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.nwc.dev/reference-api/error-codes.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.
