• 发送了无法转化的请求体,400 状态码

    1. HTTP/1.1 400 Bad Request
    2. Content-Length: 35
    3. {"message": "Problems parsing JSON"}
  • 因为某些原因不允许访问(比如被 ban ),403 状态码

    1. HTTP/1.1 403 Forbidden
    2. Content-Length: 29
    3. {"message": "Account blocked"}
    1. Content-Length: 32
    2. {"message": "Resource not found"}
  • 缺少了必要的头信息,428 状态码

  • 发送了非法的资源,422 状态码

    1. HTTP/1.1 422 Unprocessable Entity
    2. Content-Length: 149
    3. {
    4. "errors": [
    5. {
    6. "resource": "Issue",
    7. "code": "required"
    8. }
    9. ]
    10. }
  • invalid: 某个字段的值非法,接口文档中会提供相应的信息
  • required: 缺失某个必须的字段
  • not_exist: 说明某个字段的值代表的资源不存在