> ## 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 Calls API error codes for call setup, participant, recording, and session issues returned by REST endpoints.

Error codes specific to the Calls APIs.

## Calling Errors

| Error Code | Description |
| - | - |
| `ERR_CALLING_SELF` | User is initiating a call with themselves. |
| `ERR_CALL_BUSY_SELF` | The initiator is already on another ongoing call. |
| `ERR_CALL_BUSY_GROUP` | The group already has an ongoing call. |
| `ERR_CALL_BUSY_USER` | The recipient is already busy on another call. |
| `ERR_EMPTY_CALL_SESSION_ID` | The session ID is empty. |
| `ERR_CALL_SESSION_NOT_FOUND` | The call does not exist. |
| `ERR_CALL_TERMINATED` | The call has ended. Cannot update the status of a terminated call. |
| `ERR_CALL_GROUP_ALREADY_JOINED` | The user is already a member of the group call. |
| `ERR_CALL_GROUP_ALREADY_LEFT` | The user has already left the group call. |
| `ERR_CALL_INVALID_INIT` | Call status cannot be updated to `initiated`. |
| `ERR_CALL_USER_ALREADY_JOINED` | The one-to-one call was already joined by the recipient. |
| `ERR_CALL_GROUP_INVALID_STATUS` | Invalid call status for a group call (e.g., group calls cannot have a busy status). |
| `ERR_CALL_ONGOING_TO_INVALID` | Invalid status transition for an ongoing call (e.g., ongoing call cannot become busy). |
| `ERR_CALL_NOT_A_PART` | The user is not part of the call. |
| `ERR_CALL_EMPTY_JOINED_AT` | The `joinedAt` body parameter is required to join a group call. |
| `ERR_CALL_NOT_STARTED` | Call status cannot change from initiated to ended directly. |

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


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