5) Definition of Status Codes According to AIP SDK Error Messages
Definition of Status Codes According to AIP SDK Error Messages
Description
- The Status Code of the SDF Container is defined according to the AIP SDK error messages.
- Reference: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 office files of other tenants |
| 400 | Broken zip file | File encrypted with MIP but damaged |
| 400 | Template IDs must be well-formed GUIDs | Using a non-existent Protection Template ID |
| 404 | Protection is not exist | - Unencrypted plain document - Fake office file (change jpg extension to docx) |
| 403 | Failed to get tenantid :xx4d615af9-1d04-4bcc-8e6f-c6b6fe3110dd | Using Azure TenantID not registered for authentication |
| 429 | Maximum number of attempts exceeded | Timeout (10 seconds) or maximum number of attempts exceeded (between mip-restapi and mip-worker) |
| 503 | MSAL error. Failed to get token | MSAL Error - When a token request was made with the tenant's Credential in the MSAL library but the token could not be obtained (retry also failed) |
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"
}