Skip to main content

Status codes and error messages

This page provides additional information you need to configure and troubleshoot Conversational AI Engine RESTful APIs.

HTTP status codes

When calling the Conversational AI Engine RESTful API, you receive an HTTP status code.

  • If the status code is 200, it means the request is successful.

  • If the status code is not 200, the request failed. The response body contains detail and reason fields, that describe the specific reason for the failure.

Following is a sample response:


_5
// Status code 400: Request parameters are incorrect
_5
{
_5
"detail": "create agent failed, code: 400, msg: properties: channel not found",
_5
"reason": "InvalidRequest"
_5
}

Response status codeDescriptionSuggested action
200OKThe request was successful.
400Invalid request parametersCheck the detail field for specific information.
403Unauthorized accessContact technical support to activate the service.
404Agent not found or has exitedCheck whether the task has been started successfully or has stopped.
409Agent conflictUse the already-started agent_id for subsequent update, query, and delete operations.
422Access limit exceededContact technical support to raise your quota.
502Gateway errorContact technical support.
503Agent startup failureRetry using a backoff strategy.
504Request timeoutRetry using a backoff strategy.

The following table shows the possible reason values and descriptions. Use the reason and detail fields to troubleshoot the problem.

reasonDescription
InternalErrorInternal error on the server.
InvalidPermissionThe service is not activated.
InvalidRequestThe request parameters are invalid.
ResourceQuotaLimitExceededToo many concurrent requests, exceeding the quota limit.
ServiceUnavailableInternal error on the server.
TaskConflictAn agent with the same name already exists.
TaskNotFoundThe task was not started successfully, was aborted after starting, or has been destroyed.
TaskOperationTimeoutInternal error on the server.
NotImplementedInternal error on the server.