5.4 Status Code (状态代码)

Description (说明)

You return the codes under Single Wallet API Functions; we return the codes under Common API Functions.
单一钱包函式的代码由贵司回传,共同函式的代码由我方回传。

Direction (方向)Codes (代码表)
HRG 我方→You 贵司
we call the functions you implement (section 4)
我方呼叫贵司实现的函式(第 4 章)
Single Wallet API Functions
单一钱包函式
You 贵司→HRG 我方
you call the functions we provide (sections 3 and 7)
贵司呼叫我方提供的函式(第 3、7 章)
Common API Functions
共同函式

Single Wallet API Functions (单一钱包函式)

Notice (注意事项)

Return one of these three codes according to the situation described below.
请依下方的使用时机,回传以下三个 code 之一。

Code (代码)Description (说明)When to use (使用时机)
0000success
成功
The request was processed successfully.
请求已成功处理。
8001bet failed
下注失败
Return this only when you have confirmed the bet failed. Any other non-0000 code triggers 4.3 Cancel Bet.
确认该次下注失败时才回传。回传其他非 0000 代码将触发 4.3 取消下注。
9999fail
失败
Use only when no other code applies.
找不到适用代码时才使用。

Common API Functions (共同函式)

Code (代码)Description (说明)
0000success
成功
1001parameter must be required
缺少参数
1002parameter must be an positive integer
参数需为正整数
1003parameter must be an positive integer or zero
参数须为0或正整数
1004parameter format error
参数格式化失败
1005parameter over limit quantity
参数超出允许值
1006parameter over length limit
参数超出长度限制
1007parameter limited days ago
参数天数超出限制
1008parameter time interval exceeds the allowable range
参数时间区间超出允许区间范围
1009parameter start time greater than end time
开始时间大于结束时间
1101authorization bad request
安全性凭证异常
1102authorization access denied
安全性凭证操作遭拒
1103authorization must be required
需带入安全性凭证
1104authorization format incorrect
安全性凭证格式化失败
1105authorization missing username
安全性凭证缺少帐号
1106authorization missing password
安全性凭证缺少密码
1108header timestamp must be required
请求标头缺少时间戳(xts)
1109header timestamp greater than server time
时间戳超过系统时间,请校时
1110header timestamp format incorrect
时间戳格式错误
2001account cannot be found
帐号不存在
2002account is closed
帐号已被关闭
2003account is locked
帐号已被锁定
2010demo player limit reached
试玩人数已达上限
2201agent id cannot be found
代理商帐号不存在
2202agent id no authorized to access
代理商帐号未取得授权
2204demo agent role cannot be found
找不到试玩代理角色
3001txn id cannot be found
注单号不存在
3004bet limit id cannot be found
限红ID不存在
3017game is not open
游戏未开放
3018table id is not available
指定桌号不可用
4001single wallet place bet error
单钱包下注异常
5.9 Retry Mechanism (5.9 重试机制)
4003request timeout
请求逾时
5.9 Retry Mechanism (5.9 重试机制)
4004http status code is not 200
http状态码非200
5.9 Retry Mechanism (5.9 重试机制)
4006system busy
系统繁忙
4007no such error code
回传的代码无法识别
5.9 Retry Mechanism (5.9 重试机制)
9901over request limit
超过请求限制
9904over acceptable request time delay
超过可接受的请求时间延迟,请校时
9910json serialization error
平台产生回应的 json 时失败
9911json deserialization error
解析请求的 json 时失败
9913decryption error
解密失败
9914encryption error
加密失败
9915invalid ip
不合法的ip
9916system is maintained
系统维护中
9918content type incorrect
请求的 Content-Type 不受支持
9919body content format incorrect
请求内容格式错误,无法解析
9923query timeout
查询逾时,请稍后重试或缩小 lastUpdateDate 范围
9998unexpected path
未预期的路径
9999unexpected error
未预期的异常