Understanding who is responsible for transfer failure

Is there any way to understand, whether the receiver of the transfer or the sender is responsible for a transfer failure?