Skip to main content

5) Definition of Status Codes According to AIP SDK Error Messages

Definition of Status Codes According to AIP SDK Error Messages

Description

Error Code

Status CodeSDK Error MessageDescription
400The service didn't accept the auth token.MIP office files of other tenants
400Broken zip fileFile encrypted with MIP but damaged
400Template IDs must be well-formed GUIDsUsing a non-existent Protection Template ID
404Protection is not exist- Unencrypted plain document
- Fake office file (change jpg extension to docx)
403Failed to get tenantid :xx4d615af9-1d04-4bcc-8e6f-c6b6fe3110ddUsing Azure TenantID not registered for authentication
429Maximum number of attempts exceededTimeout (10 seconds) or maximum number of attempts exceeded (between mip-restapi and mip-worker)
503MSAL error. Failed to get tokenMSAL 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"
}