HTTP 状态代码和错误代码
HTTP 状态代码
HTTP 代码
描述
200
一切都按预期进行
201
创建成功
错误代码
HTTP 代码
状态码
描述
400
400
伺服器遇到违反验证约束或无效 Http Method 或无效验证等的请求
401
401
用户未经授权
404
404
请求的资源不存在
422
422
伺服器理解请求,但提供的数据存在问题
500
500
伺服器端发生意外错误
错误响应示
{
"errors": [
{
"message": "There was an issue with the data you provided. Please check again. pmt_s"
}
],
"status": 422,
"title": "Unprocessable Entity"
}{
"errors": [
{
"message": "phone_number size must be between 12 and 16"
},
{
"message": "phone_number must match \"\\+[0-9]+\""
}
],
"status": 400,
"title": "Constraint Violation"
}
最后更新于
这有帮助吗?