Message Bot REST API Error Codes

    Error Code

    If the API call fails, it returns an error code and message.

    HTTP status code Error code Description
    400 BAD_REQUEST Invalid request
    400 NONEXISTENT_BOT Bot not found
    400 EXCEEDED_NUMBER_LIMIT_OF_BOT Maximum number of bots exceeded
    400 DOMAIN_NOT_BELONGING_TO_TENANT Invalid domain
    400 PERMISSION_DENIED Not authorized
    400 EXCEEDED_LENGTH_LIMIT_OF_PARAM Parameter length exceeded
    400 ALREADY_REGISTERED_BOT Bot already exists.
    500 INTERNAL_SERVER_ERROR Internal server error

    Error Code Example

    
    {
        "code": "BAD_REQUEST",
        "message": "Bad Request Parameters: Cannot find \"admin@example.com\"",
        "domain": "message"
    }