Skip to main content

5) AIP SDK 에러 메시지에 따른 Status Code 정의

AIP SDK 에러 메시지에 따른 Status Code 정의

설명

Error Code

Status CodeSDK Error MessageDescription
400The service didn't accept the auth token.다른 테넌트의 MIP 오피스 파일
400Broken zip fileMIP로 암호화되었지만 손상되어 있는 파일
400Template IDs must be well-formed GUIDs존재하지 않는 Protection Template ID 사용
404Protection is not exist- 암호화 되지 않은 일반 문서
- 가짜 오피스 파일 (jpg 확장자를 docx로 변경)
403Failed to get tenantid :xx4d615af9-1d04-4bcc-8e6f-c6b6fe3110dd인증인가에 등록되어 있지 않은 Azure TenantID 사용
429Maximum number of attempts exceededTimeout(10초) 또는 최대 시도 횟수 초과(mip-restapi 와 mip-worker 사이)
503MSAL error. Failed to get tokenMSAL 오류 - MSAL 라이브러리에서 tenant의 Credential 로 토큰 요청을 했는데 토큰을 얻지 못했을때 (retry도 실패)

Examples

Response

Status code : 400 Bad Request

{
"code": 60001,
"message": "com.microsoft.informationprotection.internal.gen.Error: AccessDeniedError: The service didn't accept the auth token. Challenge:['Bearer resource=\"https://aadrm.com\", realm=\"e8c1b6e5-37ed-4c84-82e9-f5a02feddd85\", authorization=\"https://login.windows.net/e8c1b6e5-37ed-4c84-82e9-f5a02feddd85/oauth2/authorize\"'], CorrelationId=c893364f-7c12-462d-85a2-68991bbc12ea, CorrelationId.Description=FileEngine"
}