오류 처리
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 사양에 정의된 모든 오류에는 400 Bad Request
상태 코드를 사용합니다. 다른 모든 오류의 경우, 제조업체는 클라이언트 오류에 대해 4XX 범위의 오류를 사용하고 서버 오류에 대해 5XX 범위의 오류를 사용해야 합니다. 응답에는 모든 오류 사례에 대해 항상 다음 형식의 JSON 본문이 포함되어야 합니다.
{
"name": "camera.info",
"state": "error",
"error": {
"code": "serverError",
"message": "cannot get camera info."
}
}
name
는 camera.info
, camera.state
, camera.checkForUpdates
중 하나일 수 있습니다.
camera.commands.status
, camera.commandName
입니다.
- 400 상태 코드의 경우
code
는 다음 중 하나여야 합니다. unknownCommand
,
cameraInExclusiveUse
, missingParameter
, invalidParameterName
또는
invalidParameterValue
message
은(는) 제조업체에서 정의하며 현지화되지 않을 것으로 예상됩니다.
메시지가 표시됩니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-25(UTC)"],[],["Error responses must include a JSON body with \"name,\" \"state,\" and \"error\" fields. For specified errors, use the `400 Bad Request` status code, otherwise, employ 4XX for client and 5XX for server errors. The \"name\" field can be one of several camera-related identifiers. \"Code\" within the error object must be one of five predefined error codes for 400 responses. The \"message\" field is free-form, manufacturer-defined, and non-localized.\n"]]