Skip to main content

Apple Status Codes

The DLV_Response_Status context variable returns codes specific to the protocol used (except when no errors are encountered). When a message is successful, DLV_Response_Status does not exist. Use msys.apn.apn_status_classifier to determine the error type.

The APNs codes are as follows:

APNs CodeDescriptionType
0No Errors Encountered 
1Processing ErrorTemporary Failure
2Missing Device TokenPermanent Failure
3Missing TopicPermanent Failure
4Missing PayloadPermanent Failure
5Invalid Token SizePermanent Failure
6Invalid Topic SizePermanent Failure
7Invalid Payload SizePermanent Failure
8Invalid TokenPermanent Failure
10ShutdownTemporary Failure
255None (unknown)Temporary Failure

The previous table shows Apple status codes at the time of writing. See Provider Communication with Apple Push Notification Service to confirm these values.

Was this page helpful?