Using enum renepay_errorcode simplifies the low level API of chan_extra and flow. We can extract information about the nature of a function call failure from its return value.