# Error Code

#### Description

This section explains the meanings of error code responses returned by LTS APIs.

#### Response Format

{"error_msg":"Current user is not authenticated correctly, check your token.","error_code":"LTS.0002"}

#### Error Code Description

Table 1 Error code description
Response Code | Error Code | Description | Error Message | Handling Measure
--- | --- | --- | --- | ---
400 | LTS.0101 | Failed to create the log group because a log group with the same name already exists. | Failed to create log group, the group name has been existed | Check the log group name.
400 | LTS.0104 | Failed to create the log group because the maximum number of log groups has been reached. | Failed to create log group, the number of log groups exceeds the quota | Check whether the number of log groups reaches the quota (100 by default).
400 | LTS.0105 | Failed to delete the log group because the log group has associated log transfer tasks. | Log group is associated by transfer | Check whether the associated log transfer tasks have been deleted.
404 | LTS.0201 | Failed to create a log stream because the associated log group does not exist. | The group is not existed | Check the ID of the log group.
400 | LTS.0205 | Failed to create a log stream because the log stream name already exists. | The topic name has been existed | Check whether the log stream with the same name already exists.
400 | LTS.0206 | Failed to create a log stream because the maximum number of log streams has been reached. | Failed to create log topic, the number of log topics exceeds the quota | Check whether the number of log streams reaches the quota (100 by default).
400 | LTS.0207 | Failed to delete the log stream because the log stream has associated a log transfer task. | Log topic is associated by transfer | Check whether the associated log transfer task has been deleted.
500 | LTS.0010 | System internal error. | The system encountered an internal error | Contact the administrator.
500 | LTS.0102 | Failed to create the log group. | Failed to create log group. | Check whether the project ID is correct and whether the log group name meets the requirements.
500 | LTS.0103 | Failed to delete the log group. | Failed to delete log group | Check whether the database is normal or whether the network connection is normal.
500 | LTS.0202 | Failed to create a log stream. | Failed to create log topic | Check whether the project and group IDs are correct and whether the log stream name meets the requirements.
500 | LTS.0203 | Failed to delete the log stream. | Failed to delete log topic | Check whether the database is normal or whether the network connection is normal.
400 | LTS.0001 | The API version /projectId is invalid or does not exist. | API version/project id invalid or missing | Check whether the version and projectID information is correct.
401 | LTS.0002 | Unauthorized user token. | Current user is not authenticated correctly, check your token | Check the token information of the current user.
400 | LTS.0011 | Invalid resource ID. | The resource id is invalid or missing | Check whether the resource ID in the request is correct.

Parent topic: Public Parameters