Response to server-side API requests: 401: Unauthorized

由于授权信息缺失或不正确,请求失败。请查看授权页面,并仔细检查 Authorization header

该请求也因未找到指定的用户画像而失败。

请求体

参数类型描述
errorsObject
  • source:(字符串)始终为 non_field_errors
  • errors:错误描述。
error_codeString简短错误名称。始终为 not_authenticated
status_codeIntegerHTTP 状态码。始终为 401

响应示例

{
  "errors": [
    {
      "source": "non_field_errors",
      "errors": [
        "Authentication credentials were not provided."
      ]
    }
  ],
  "error_code": "not_authenticated",
  "status_code": 401
}