> For the complete documentation index, see [llms.txt](https://doc.mantago.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.mantago.cc/chang-jian-wen-ti/cuo-wu-dai-ma.md).

# 錯誤代碼

這個是有錯誤時的JSON Response範例：

```json
{
    "success": false,
    "errResponse": {
        "message": "This is sample message",
        "code": 0000,
        "botId": "MantaGO Bot ID"
    }
}
```

API Response的errResponse可能出現以下錯誤代碼(code)及訊息(message)：

<table><thead><tr><th width="186">錯誤代碼(code)</th><th>錯誤訊息(message)</th><th>發生原因</th></tr></thead><tbody><tr><td>1004</td><td>Token is invalid or expired</td><td>API Token和Secret Key到期</td></tr><tr><td>1002</td><td>permission denied</td><td><ol><li>API Token和Secret Key有誤</li><li>目前方案不支援Open API</li></ol></td></tr><tr><td>5001</td><td>尋找Bot資訊失敗,無此botId</td><td>依據Query parameter的botId找不到指定的機器人</td></tr><tr><td>60001</td><td>Bind customer client failed</td><td>依據Request body的clientId，找不到想綁定Line的會員</td></tr><tr><td>60002</td><td>Unbind customer client failed</td><td>依據Request body的clientId和customerId，找不到被綁定的會員</td></tr><tr><td>11000</td><td>存入integration info 失敗</td><td>設定Line webview網址失敗</td></tr><tr><td>11001</td><td>尋找Integration資訊失敗,無此IntegrationId</td><td>依據Query parameter的botId和platform找不到對應平台的綁定資料</td></tr><tr><td>37011</td><td>Get client failed</td><td>依據API所帶的Query parameter和Request Parameter的組合找不到指定的會員</td></tr><tr><td>36000</td><td>Create broadcast failed</td><td><ol><li>訊息傳送失敗</li><li>機器人尚未發布</li></ol></td></tr><tr><td>110000</td><td>Get correct request variables failed</td><td>Request Body缺少必要的變數</td></tr><tr><td>120000</td><td>Get open api failed</td><td>曾經換發過API Token和Secret Key，但使用到舊的API Token和Secret Key</td></tr><tr><td>120001</td><td>Update open api failed</td><td>更新webview網址失敗</td></tr></tbody></table>
