API網關錯誤碼表(VPC實例)
本文主要介紹VPC實例的API網關錯誤碼表。
本章節的錯誤代碼表適用于VPC共享實例/Serverless實例
和VPC專享實例
。
當客戶端收到的應答中
X-Ca-Error-Code
頭不為空,表示應答碼由API網關產生,錯誤碼由一個6位長度的字符描述,請參考下表,而X-Ca-Error-Message
表示錯誤的應答信息,用于描述該場景下更詳細的一些錯誤信息。如果
X-Ca-Error-Code
頭為空,則表示這個HTTP應答碼由后端服務產生,API網關透傳了來自后端的錯誤信息。
API網關錯誤碼表
錯誤代碼 | HTTP狀態碼 | Message | 描述 |
I400HD | 400 | Invalid Header `${HeaderName}` ${Reason} | HTTP請求頭非法 |
I400MH | 400 | Header `${HeaderName}` is Required | 缺少HTTP請求頭 |
I400BD | 400 | Invalid Body: ${Reason} | HTTP請求包體非法 |
I400PA | 400 | Invalid Request Path `${Reason}` | HTTP請求路徑非法 |
I405UM | 405 | Unsupported Method `${Reason}` | 不支持的HTTP請求方法 |
I400RU | 400 | Invalid Request Uri `${Reason}` | HTTP請求URL非法 |
I403PT | 403 | Invalid protocol ${Protocol} unsupported | 使用了API配置中不支持的協議,請檢查API配置的協議 |
I413RL | 413 | Request body too Large | 請求包體過長,相關限制參考使用限制 |
I413UL | 413 | Request URL too Large | 請求URL過長,相關限制參考使用限制 |
I400CT | 400 | Invalid Content-Type: `${Reason}` | 非法的`Content-Type` |
I404DO | 404 | Invalid Domain `${DomainName}` | 未知的請求域名,請使用綁定的域名進行調用 |
I410GG | 410 | Group's instance invalid | 請求了非法的實例,分組可能已經不屬于當前實例 |
I400SG | 400 | Invalid Stage | 請求了未知的環境 |
I404NF | 404 | API not found ${Reason} | 根據請求的`Path`,`Method`在當前的環境中未找到API,請參考I404NF錯誤碼排查 |
X400PM | 400 | Invalid plugin meta ${PluginName} ${Reason} | 插件元數據非法 |
X500ED | 500 | Expired api definition | 過期的老版本元數據已經不被新版本API網關支持,需要提交工單修改老版本元數據 |
X500AM | 500 | Invalid Api Meta, try deploy again or contact us via ticket | 保存的元數據定義格式錯誤,需要提交工單修復 |
X403DG | 403 | Bad Domain or Group: ${Reason} | 分組數據非法 |
B451DO | 451 | Unavailable Domain for Legal Reasons | 域名因法律法規問題被禁 |
B451GO | 451 | Unavailable Group for Legal Reasons | 分組因法律法規問題被禁 |
B403OD | 403 | Provider Account Overdue | API提供方欠費,若是云市場購買的API,請聯系服務商處理 |
A401AC | 401 | Invalid AppCode ${Reason} | 當使用AppCode模式授權時,未找到AppCode,請核實App是否授權,AppCode是否有誤 |
A400IK | 400 | Invalid AppKey | 當使用`Key/Secret`簽名授權時,未找到AppKey |
A403IS | 403 | Invalid Signature, Server StringToSign:`${StringToSign}` | 簽名不匹配,排查請參考返回A403IS錯誤碼 |
A403EP | 403 | App authorization expired | 授權已過期,請重新授權 |
A403PR | 403 | Plugin Authorization Needed | 需要插件授權 |
A400MA | 400 | Need authorization, `X-Ca-Key` or `Authorization: APPCODE ...` is required | 需要使用`Key/Secret`簽名授權或`AppCode`授權 |
I400I5 | 400 | Invalid Content-MD5 ${Reason} | 不匹配的`Content-MD5` |
I400NC | 400 | X-Ca-Nonce is required | 當設置了`使用X-Ca-Nonce防重放`選項時,必須提供`X-Ca-Nonce`頭 |
S403NU | 403 | Nonce Used | 檢測到請求重放,請求的`X-Ca-Nonce`頭重復 |
S403TE | 403 | X-Ca-Timestamp is expired | `X-Ca-Timestamp`頭中提供的時間戳已過期,時間戳有效期15分鐘 |
I400MP | 400 | Parameter `${ParameterName}` is required | API中配置的必填參數未傳值 |
I400IP | 400 | Invalid parameter `${ParameterName}` ${Reason} | API中配置的參數值非法 |
I400JR | 400 | JWT required | 未找到JWT參數 |
S403JI | 403 | Claim `jti` is required when `preventJtiReplay:true` | 當在`JWT授權插件`中配置了防重放功能時,請求未提供有效的`jti` |
A403SV | 403 | Claim `jti` in JWT is used | 當在`JWT授權插件`中配置了防重放功能時,請求提供的`jti`已被使用 |
I400JD | 400 | JWT Deserialize Failed: `${Token}` | 請求中提供的`JWT`解析失敗 |
A403JT | 403 | Invalid JWT: ${Reason} | 請求中提供的`JWT`非法 |
A403JK | 403 | No matching JWK, `${kid}` not found | 請求`JWT`中的`kid`沒有匹配的`JWK` |
A403JE | 403 | JWT is expired at `${Date}` | 請求中提供的`JWT`已過期 |
I400JP | 400 | Invalid JWT plugin config: ${JWT} | `JWT授權`插件配置錯誤 |
A403OL | 403 | OAuth2 Login failed: ${Reason} | |
A403OU | 403 | OAuth2 Get User Info failed: ${Reason} | |
A401OT | 401 | Invalid OAuth2 Access Token | |
A401OM | 401 | OAuth2 Access Token is required | |
T429ID | 429 | Throttled by INNER DOMAIN Flow Control, ${Domain} is a test domain, only 1000 requests per day | 當使用默認二級域名訪問時,限制1000次/天,(海外Region及中國香港限制100次/天),請綁定正式域名以解除這個限制 |
T429IN | 429 | Throttled by INSTANCE Flow Control | 觸發當前實例的流控限制,請升級實例規格 |
T429GR | 429 | Throttled by GROUP Flow Control | 觸發當前分組的流控限制,請升級實例規格 |
T429PA | 429 | Throttled by API Flow Control | 觸發插件上的默認API流控 |
T429PR | 429 | Throttled by PLUGIN Flow Control | 觸發插件的特殊流控 |
T429SR | 429 | Throttled by SERVER Flow Control | |
T429MR | 429 | Too Many Requests, throttle by `${Description}` | |
A403IP | 403 | Access denied by IP Control Policy | 被`IP訪問控制插件`阻止訪問 |
A403IN | 403 | Access from internet is disabled ${Reason} | `API`或`API分組`禁止從公網訪問,請從內網調用,文檔參考私網調用API |
A403VN | 403 | Access from invalid VPC is disabled | 來源VPC被阻止 |
A403AC | 403 | Access Control Forbidden by ${RuleName} | 被`授權控制`插件阻止 |
A403CO | 403 | Cross origin resource forbidden ${Domain} | 被CORS策略阻止訪問 |
I404CO | 404 | Cross origin resource not found ${Method} - ${Path} | 根據CORS預檢請求中的Path與Method,無法找到API定義 |
I404CH | 404 | Content not cached, with `Cache-Control:only-if-cached` | |
I404NR | 404 | ${Resource} not found | |
I404SR | 404 | Stage route missing: ${Reason} | |
B403MO | 403 | Api Market Subscription overdue | API提供商欠費,請聯系服務商處理 |
B403MQ | 403 | Api Market Subscription quota exhausted | 購買的云市場API配額已耗盡,請續費次數 |
B403ME | 403 | Api Market Subscription expired | API訂購關系已過期,請重新訂購 |
B403MI | 403 | Api Market Subscription invalid | API市場訂購關系非法 |
D504RE | 504 | Backend domain `${Domain}` resolve failed | 后端域名解析失敗,請核實后端域名解析 |
D504IL | 504 | Backend domain `${Domain}` resolve to illegal address `${Address}` | 后端域名解析結果非法 |
D504CO | 504 | Backend service connect failed `${Reason}` | 后端連接失敗,請檢查安全組、后端服務器啟動狀態、或防火墻配置,排查可參考D504CO錯誤碼排查 |
504 | Backend service connect failed `Connection lease request time out` | API網關實例后端連接池不夠用導致的后端連接失敗,請升級實例規格 | |
D504CS | 504 | Backend http ssl connect failed `${Reason}` | 后端HTTPS連接失敗,請檢查后端配置的協議與端口是否匹配 |
D504TO | 504 | Backend service request timeout | API網關請求后端超時,請調整后端超時時間或提高后端服務響應速度 |
X504VE | 504 | Backend service vpc mapped failed | 后端VPC映射錯誤 |
D503BB | 503 | Backend circuit breaker busy | API被斷路器阻止 |
D503CB | 503 | Backend circuit breaker open, ${Reason} | API處于熔斷/斷路器開狀態,請檢查后端性能 |
I508LD | 508 | Loop Detected | 檢測到環回調用 |
I404DD | 404 | Device id ${DeviceId} not found | 當使用WebSocket雙向通信調用時,DeviceId未找到 |
A403FC | 403 | Function Compute AssumeRole failed ${RequestId}:${Reason} | 后端是函數計算時授權錯誤 |
D502FC | 502 | Function Compute response invalid: ${Reason} | 后端是函數計算時,來自后端的應答非法 |
N502RE | 502 | Send Response IO Exception: ${Reason} | 發送應答給客戶端時報錯,常見于客戶端提前關閉連接或網絡錯誤 |
X500ER | 500 | Service Internal Error | 服務器內部錯誤,請提交工單聯系工作人員 |
X503BZ | 503 | Service Busy | API網關服務忙,請稍后再試 |
X504TO | 504 | Service timeout | API網關處理超時,請提交工單聯系工作人員 |
部分錯誤代碼可能隨著升級或新功能的加入而改變。