常见错误码及定义

来源:互联网 发布:裴蕾网络黄金最新动态 编辑:程序博客网 时间:2024/06/13 11:18

常见错误码及定义

目录

  • 一、授权/令牌请求接口返回码
  • 二、API通用返回码

一、授权/令牌请求接口返回码

描述应用发起授权请求或令牌请求时,开放平台的返回码。

错误码

错误描述

Error Description

10000

非法的请求参数

Invalid request

10001

用户认证失败

Invalid client

10002

非法的授权信息

Invalid grant

10003

应用没有被授权,无法使用所指定的grant_type

Unauthorized client

10004

grant_type字段超过定义范围

Unsupported grant_type

10005

scope信息无效或超出范围

Invalid scope

10006

提供的更新令牌已过期

Expired token

10007

redirect_uri字段与注册应用时所填写的不匹配

Redirect_uri mismatch

10008

response_type参数值超过定义范围

Unsupported response type

10009

用户或授权服务器拒绝授予数据访问权限

Access denied

二、API通用返回码

描述API接口的共性返回码,API自定义的接口返回码请参阅对应API接口文档描述。

错误码

错误描述

Error Description

0

成功

Success

1

未知错误

Unknown error

2

服务暂不可用

Service temporarily unavailable

3

未知的方法

Unsupported openapi method

4

接口调用次数已达到设定的上限

Open api request limit reached

5

请求来自未经授权的IP地址

Unauthorized client IP address

6

无权限访问该用户数据

No permission to access user data

7

来自该refer的请求无访问权限

No permission to access data for this referer

100

请求参数无效

Invalid parameter

101

api key无效

Invalid API key

104

无效签名

Incorrect signature

105

请求参数过多

Too many parameters

106

未知的签名方法

Unsupported signature method

107

timestamp参数无效

Invalid/Used timestamp parameter

109

无效的用户资料字段名

Invalid user info field

110

无效的access token

Access token invalid or no longer valid

111

access token过期

Access token expired

210

用户不可见

User not visible

211

获取未授权的字段

Unsupported permission

212

没有权限获取用户的email

No permission to access user email

800

未知的存储操作错误

Unknown data store API error

801

无效的操作方法

Invalid operation

802

数据存储空间已超过设定的上限

Data store allowable quota was exceeded

803

指定的对象不存在

Specified object cannot be found

804

指定的对象已存在

Specified object already exists

805

数据库操作出错,请重试

A database error occurred. Please try again

900

访问的应用不存在

No such application exists

转载:http://open.189.cn/index.php?m=content&c=index&a=lists&catid=31

百度Open API错误码定义

Error CodeError Description(Chinese)Error Description(English)0成功Success1未知错误Unknown error2服务暂不可用Service temporarily unavailable3未知的方法Unsupported openapi method4接口调用次数已达到设定的上限Open api request limit reached5请求来自未经授权的IP地址Unauthorized client IP address:%s6无权限访问该用户数据No permission to access data7来自该refer的请求无访问权限No permission to access data for this referer100请求参数无效Invalid parameter101api key无效Invalid API key102session key无效Session key invalid or no longer valid103call_id参数无效Invalid/Used call_id parameter104无效签名Incorrect signature105请求参数过多Too many parameters106未知的签名方法Unsupported signature method107timestamp参数无效Invalid/Used timestamp parameter108无效的user idInvalid user id109无效的用户资料字段名Invalid user info field110无效的access tokenAccess token invalid or no longer valid111access token过期Access token expired112session key过期Session key expired114无效的ip参数Invalid Ip210用户不可见User not visible211获取未授权的字段Unsupported permission212没有权限获取用户的emailNo permission to access user email800未知的存储操作错误Unknown data store API error801无效的操作方法Invalid operation802数据存储空间已超过设定的上限Data store allowable quota was exceeded803指定的对象不存在Specified object cannot be found804指定的对象已存在Specified object already exists805数据库操作出错,请重试A database error occurred. Please try again900访问的应用不存在No such application exists950批量操作已开始,请先调用end_batch接口结束前一个批量操作begin_batch already called, please make sure to call end_batch first951结束批量操作的接口调用不应该在start_batch接口之前被调用end_batch called before start_batch952每个批量调用不能包含多于20个接口调用Each batch API can not contain more than 20 items953该接口不适合在批量调用操作中被使用Method is not allowed in batch mode

转载:http://developer.baidu.com/wiki/index.php?title=%E7%99%BE%E5%BA%A6Open_API%E9%94%99%E8%AF%AF%E7%A0%81%E5%AE%9A%E4%B9%89

0 0
原创粉丝点击