구조화된 오류 답장
더 나은 메시지와 로그를 위해 키 액세스 제어 목록 서비스 (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 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-22(UTC)
[null,null,["최종 업데이트: 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"]]