> ## 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 Management APIs (Multi-Tenancy).

## App Management

| Error Code                          | Description                                                                                                                          |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `ERR_APP_CREATION_FAILED_MAX_LIMIT` | You have reached the maximum number of complimentary apps allowed. Delete an existing app or upgrade to a paid plan, then try again. |
| `ERR_APP_ARCHIVED`                  | The app has been archived and will be permanently deleted after 30 days.                                                             |
| `ERR_APP_DELETION`                  | The app is associated with a paid subscription. Contact CometChat support before deleting.                                           |
| `ERR_APP_NOT_FOUND`                 | The App ID does not exist or has been archived.                                                                                      |

## Extensions

| Error Code                | Description                                                                 |
| ------------------------- | --------------------------------------------------------------------------- |
| `ERR_EXTENSION_NOT_FOUND` | The provided extension ID does not correspond to any existing microservice. |
| `ERR_EXTENSION_INACTIVE`  | The operation failed because the extension is currently inactive.           |

## Team Management

| Error Code               | Description                                             |
| ------------------------ | ------------------------------------------------------- |
| `ERR_ALREADY_AN_OWNER`   | The user is already registered as an owner of the app.  |
| `ERR_SELF_ACTION_DENIED` | A user cannot add themselves as a collaborator.         |
| `ERR_NOT_A_COLLABORATOR` | The specified email is not a collaborator for this app. |

## Webhooks

| Error Code                   | Description                           |
| ---------------------------- | ------------------------------------- |
| `ERR_WEBHOOK_NOT_FOUND`      | The webhook does not exist.           |
| `ERR_BAD_REQUEST`            | Validation error in the request.      |
| `AUTH_ERR_EMPTY_AUTH_HEADER` | The authentication header is missing. |
