added verification that the errorCode of a DeliveryReceipt is not longer than 3