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