Skip to main content

6) SKMS 응답 상태 코드 정의

SKMS 응답 상태 코드 정의

설명

Response Code

Status CodeStatus MessageDescription
200OK요청 성공
400Bad Request클라이언트 요청이 잘못 됨(e.g. 필수 값 입력 누락)
401Unauthorized승인 되지 않음(인증 실패)
403Forbidden허가 되지 않음(인증은 되었으나 해당 사용자에게 허가되지 않은 요청 인 경우)
404Not Found요청한 리소스가 없음
500Internal Server Error요청을 처리하는 동안 내부 서버 오류 발생

Response Error JSON format

NameRequiredTypeDescription
coderequiredint에러 코드(Error Code 정의 참고)
messagerequiredstring에러 메시지
detailstring에러 상세 내용(에러에 따라 세부 항목은 달라 질 수 있음)

Error Code

  • 에러 코드 정의
error codemessageDescriptionStatus Code
40003Failed create header헤더 생성 실패400
40004Failed extract header헤더 추 실패400
40005Batch/Scheduler Failed배치/스케줄러 실패400
40006oAuth connection failed인증인가 연결 실패400
40007Integrated Log Service Failed통합 로그 서비스 실패400
40008Key Vault Service Failed키볼트 서비스 실패400
40009Service Linker Key Manager is not used키 데이터 연동 실패400
40011Unable to AzureInfoazure 정보 조회 실패400
40012Relay client accessToken Failed릴레이 토큰 갱신 실패400
40013Key not found in the keyVault키볼트 키 조회 실패400
40101Invalid token유효하지 않은 토큰401
40102No matching company ID found일치하는 company_id 없음400
40103Failed Duplicate domain중복된 도메인400
40104No matching domains found일치하는 도메인 없음400
40105Required value is missing필수 값 없음400
40107No matching license found일치하는 라이선스 없음400
40108Unavailable License사용 불가능한 라이선스400
40110HeaderKey is Empty일치하는 헤더키 없음400
40111EncryptionKey is Empty일치하는 암호화 키 없음
- DS_KEY_ENCRYPTION_KEY
400
40112No matching SCI ServerID found일치하는 SCI 서버 ID 없음400
40301You don't have permission this service접근 권한이 없음401
50001An unexpected error has occurred in the internal system접근 권한이 없음400/500
50002SCI Connection failedSCI 서버 연결 테스트 실패500
50003Service Linker Name is Not ExistSHIELDRM 서비스명 존재하지 않음500
50004Service Linker is UnusedSHIELDRM 서비스 미사용500
50005SCI Service Linker registration FailedSCI 서버 연동 시스템 등록 실패500

Examples

Response

Status code : 400 Bad Request

{
"code": 40013,
"message": "Key not found in the keyVault",
"detail": "keyId : 0000009"
}