When sending a payment, payment failures may be encountered due to a variety of reasons. See error codes for types.
Lightning Network API
[1] https://github.com/lightningnetwork/lightning-rfc