以下是我发起的请求内容
:method POST
:scheme https
:path /1.1/usersByMobilePhone
:authority ---
accept /
content-type application/json
accept-language zh-Hans-CN;q=1
x-lc-id ---
content-length 56
x-lc-sign ---
user-agent -/1.0.3 (iPhone; iOS 12.2; Scale/3.00)
accept-encoding br, gzip, deflate
content
{
"smsCode": "11222555",
"mobilePhoneNumber": "13668146987"
}
以下为回复的内容
:status 400
server nginx
date Tue, 07 May 2019 03:48:45 GMT
content-type application/json;charset=utf-8
cache-control no-cache,no-store
pragma no-cache
x-request-id d3f866e2b4dacc71bbae36160c2c63b4
x-request-path lb_5_225, m_850b8db_f59ffd56_23311
content
{
"code": 603,
"error": "无效的短信验证码"
}
Code 400的定义不应该是 用于告知客户端发送了一个错误的请求,一般表示请求错误了。