错误响应
错误响应
字段名
类型
说明
示例代码
import requests
# 请求参数
playload = {
"email": "hgzchn@qq.com",
"password": "itellyou"
}
# 请求头
headers = {
"Content-Type": "application/json",
"X-Hydrogen-Client-ID": "0f17262d58e0071e6cf3"
}
# 假设此应用未开始邮箱注册,则会发生错误
response = requests.post(
url="http://{{服务器域名}}/hserve/v2.0/register/email/",
headers=headers,
data=playload
)
print(response.status_code)
# 405
print(response.json())
# {'status': 'error', 'error_msg': 'Please enable email login first.'}错误码详解
Last updated
Was this helpful?