5) AIP SDK エラーメッセージに基づくステータスコードの定義
AIP SDK エラーメッセージに基づくステータスコードの定義
説明
- AIP SDKのエラーメッセージに従って、SDFコンテナのステータスコードが定義されます。
- 参考 :https://wiki.softcamp.co.kr/x/Nh2MBg
Error Code
| Status Code | SDK Error Message | Description |
|---|---|---|
| 400 | The service didn't accept the auth token. | 他のテナントのMIPオフィスファイル |
| 400 | Broken zip file | MIPで暗号化されていますが、破損している ファイル |
| 400 | Template IDs must be well-formed GUIDs | 存在しない Protection Template ID の使用 |
| 404 | Protection is not exist | - 暗号化されていない一般文書 - 偽のオフィスファイル (jpg拡張子をdocxに変更) |
| 403 | Failed to get tenantid :xx4d615af9-1d04-4bcc-8e6f-c6b6fe3110dd | 認証に登録されていないAzure TenantIDの使用 |
| 429 | Maximum number of attempts exceeded | タイムアウト(10秒)または最大試行回数超過(mip-restapiとmip-workerの間) |
| 503 | MSAL error. Failed to get token | MSALエラー - MSALライブラリでテナントのCredentialを使用してトークンリクエストを行ったが、トークンを取得できなかった場合(リトライも失敗) |
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"
}