Response to web API requests: 401: Unauthorized
İstek, eksik veya hatalı yetkilendirme nedeniyle başarısız oldu. Authorization header’a özellikle dikkat ederek Yetkilendirme sayfasını inceleyin.
İstek aynı zamanda belirtilen profil bulunamadığı için de başarısız oldu.
Body
| Parametre | Tür | Açıklama |
|---|---|---|
| errors | Object |
|
| error_code | String | Kısa hata adı. Her zaman not_authenticated. |
| status_code | Integer | HTTP durum kodu. Her zaman 401. |
Yanıt örneği
{
"errors": [
{
"source": "non_field_errors",
"errors": [
"Authentication credentials were not provided."
]
}
],
"error_code": "not_authenticated",
"status_code": 401
}