错误码(Error Code)
errcode errmsg description
0 none error message 表示成功或是
1 failed 表示失败或否
-3 Invalid Parameter. 参数错误
10000 invalid client_id client_id不存在
10001 invalid client 无效的client,client_id或client_secret错
10002 invalid code 无效的code或code已失效
10003 invalid token token不存在
10004 invalid grant token无授权,token已失效或被撤销授权
10005 invalid grant_scope token权限不在范围内
10006 invalid username 未审核的app,只能由特定的测试帐号授权
10007 invalid account username或password错误
10008 invalid redirect_uri redirect_uri无效,必须和应用信息里保持一致
10009 unsupported response_type 请求的response_type类型未被支持
10010 unsupported grant_type 请求的grant_type类型未被支持
10011 invalid refresh_token refresh_token无效
20000 invalid openid openid无效
20001 not lock user 用户不是锁的钥匙拥有者
20002 not lock admin 不是锁管理员
20003 invalid key 钥匙id和锁id还有用户的对应关系错误
20004 not exists key 钥匙不存在
20005 backupkey password error 备份钥匙的密码错误
20006 not exists receiver 接收方不存在
20007 invalid keyboardPwdVersion 键盘密码版本无效,有效值:1、2、3、4
20008 invalid lockname 锁名称无效
30001 Do not have permission 没有该接口的权限
30002 invalid registered username 用户名只能包含数字和字母
30003 existing registered users 用户已存在
30004 invalid userid to delete 要删除的用户的userid不合法
30005 not the user of custom app 不是定制App的用户
30006 exceeds the restrictions of API call number 超过接口调用次数限制
80000 date must be current time 请求时间必需为当前时间前后五分钟以内
80002 invalid json format JSON格式不正确
90000 internal server error 系统内部错误
-2012 The Lock is not connected to any Gateway. 锁附近没有可用的网关 。
-2018 Permission Denied. 没有权限。
-4056 Run out of memory. 存储空间已满,操作失败。