错误说明
更新时间:
Http状态码
错误码
错误消息
错误原因
200
0
This field will be ommitted
400
1003
Bad Request
解析request失败
400
2000
Missing Parameter
缺少参数q、source、target、timeStamp
400
2001
Invalid Parameter
timeStamp格式错误
400
2102
Input Too Long
参数q长度超过限制
400
3000
Internal Error
内部处理异常
401
1102
Unauthorized Client
参数appId无效
401
1106
Missing Access Token
没有Authorization
401
1107
Invalid Token
Authorization不正确
401
1108
Expired Token
timeStamp过期
413
2102
Input Too Long
请求体过大
429
1104
Out of Rate Limit
请求频率超过限制
429
1105
Out of Quotas
请求总字符数超过限制
405
1004
Method Not Allowed
http请求的method只能是get或者post。为post时,header里必须有content-type,且值为application/x-www-form-urlencoded
411
1007
Not Content Length
http请求的method为post时,header里必须设置正确的content-length
400
1002
API Not Found
根据http请求的path没有找到相应的API
Http状态码 | 错误码 | 错误消息 | 错误原因 |
---|---|---|---|
200 | 0 | This field will be ommitted | |
400 | 1003 | Bad Request | 解析request失败 |
400 | 2000 | Missing Parameter | 缺少参数q、source、target、timeStamp |
400 | 2001 | Invalid Parameter | timeStamp格式错误 |
400 | 2102 | Input Too Long | 参数q长度超过限制 |
400 | 3000 | Internal Error | 内部处理异常 |
401 | 1102 | Unauthorized Client | 参数appId无效 |
401 | 1106 | Missing Access Token | 没有Authorization |
401 | 1107 | Invalid Token | Authorization不正确 |
401 | 1108 | Expired Token | timeStamp过期 |
413 | 2102 | Input Too Long | 请求体过大 |
429 | 1104 | Out of Rate Limit | 请求频率超过限制 |
429 | 1105 | Out of Quotas | 请求总字符数超过限制 |
405 | 1004 | Method Not Allowed | http请求的method只能是get或者post。为post时,header里必须有content-type,且值为application/x-www-form-urlencoded |
411 | 1007 | Not Content Length | http请求的method为post时,header里必须设置正确的content-length |
400 | 1002 | API Not Found | 根据http请求的path没有找到相应的API |