תשובות מובנות לשגיאות
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי לאפשר הודעות ויומנים טובים יותר, כשלים בפעולה של Key Access Control List Service (KACLS) מחזירים תשובה מובנית בפורמט JSON בגוף.
נעשה שימוש בקודי המצב הרגילים של HTTP.
| ייצוג ב-JSON |
{
"code": int,
"message": string,
"details": string
}
|
| שדות |
code |
int
קוד סטטוס רגיל של HTTP
|
message |
string (UTF-8)
הודעת שגיאה שקריאה לאנשים.
|
details |
string (UTF-8)
פרטים נוספים על השגיאה, כמו דוח קריסות.
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-01-27 (שעון UTC).
[null,null,["עדכון אחרון: 2026-01-27 (שעון UTC)."],[],["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"]]