> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-agent-native-development.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Codes

> Review CometChat AI Moderation API error codes for rules, keywords, messages, and moderation request failures.

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. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.