Response to server-side API requests: 401: Unauthorized
由于授权信息缺失或不正确,请求失败。请查看授权页面,并仔细检查 Authorization header。
该请求也因未找到指定的用户画像而失败。
请求体
| 参数 | 类型 | 描述 |
|---|---|---|
| errors | Object |
|
| error_code | String | 简短错误名称。始终为 not_authenticated。 |
| status_code | Integer | HTTP 状态码。始终为 401。 |
响应示例
{
"errors": [
{
"source": "non_field_errors",
"errors": [
"Authentication credentials were not provided."
]
}
],
"error_code": "not_authenticated",
"status_code": 401
}