apns: implements error response