Yapılandırılmış hata yanıtları
Daha iyi mesajlar ve günlükler sağlamak için Anahtar Erişim Kontrol Listesi Hizmeti (KACLS)
işlem hataları, gövdede yapılandırılmış bir JSON yanıtı döndürür.
Standart HTTP durum kodları kullanılır.
JSON gösterimi |
{
"code": int,
"message": string,
"details": string
}
|
Alanlar |
code |
int
Standart HTTP durum kodu
|
message |
string (UTF-8)
İnsan tarafından okunabilen bir hata mesajı.
|
details |
string (UTF-8)
Hatayla ilgili diğer ayrıntılar (ör. yığın izleme)
|
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-22 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-22 UTC."],[[["KACLS operation failures now return structured JSON responses for improved debugging."],["These JSON responses include an HTTP status code, a human-readable message, and detailed error information."],["This structure facilitates easier integration with automated systems and provides developers with more context for troubleshooting."]]],["KACLS operation failures now return a structured JSON response in the body, using standard HTTP status codes. The JSON format includes three fields: `code` (an integer representing the HTTP status), `message` (a human-readable error string), and `details` (a string providing further information like a stack trace). This structured format improves the quality of error messages and logs.\n"]]