Response to server-side API requests: 401: Unauthorized

リクエストは、認証情報が未指定または誤っているために失敗しました。認証ページで Authorization header を確認してください。

また、指定されたプロファイルが見つからなかったためにリクエストが失敗しました。

ボディ

パラメーター説明
errorsObject
  • source: (string) 常に 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
}