If an SMS is not delivered (even after the SMSC retry cycle is complete) then a delivery receipt, with an error code indicating why the message failed will be sent. A complete list of delivery receipt error codes can be found in our Developer documentation.