> ## Documentation Index
> Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Codes

> Error Codes for CometChat REST API.

Error codes specific to the AI Moderation APIs.

## Rule Errors

| Error Code           | Description                                |
| -------------------- | ------------------------------------------ |
| `ERR_RULE_NOT_FOUND` | No rule exists with the specified rule ID. |

## Keyword Errors

| Error Code              | Description                                      |
| ----------------------- | ------------------------------------------------ |
| `ERR_KEYWORD_NOT_FOUND` | No keyword exists with the specified keyword ID. |

## Message Errors

| Error Code                 | Description                              |
| -------------------------- | ---------------------------------------- |
| `ERR_MESSAGE_ID_NOT_FOUND` | No message exists with the specified ID. |

## Reason Errors

| Error Code             | Description                             |
| ---------------------- | --------------------------------------- |
| `ERR_REASON_NOT_FOUND` | No reason exists with the specified ID. |

## Authentication Errors

| Error Code                  | Description                                                     |
| --------------------------- | --------------------------------------------------------------- |
| `AUTH_ERR_EMPTY_APIKEY`     | The `apikey` header is missing from the request.                |
| `AUTH_ERR_APIKEY_NOT_FOUND` | The provided API key is invalid.                                |
| `AUTH_ERR_NO_ACCESS`        | The API key doesn't have the required scope for this operation. |
