A special case is that of the debtor who sells himself as a slave to his creditor; the Holiness Code instructs that in this situation, the debtor must not be made to do the work of slaves, but must instead be treated the same as a hired servant [REF].
The Covenant Code clearly institutes the death penalty for beating a free man to death;[REF] in contrast, beating a slave to death was to be avenged only if the slave does not survive for one or two days after the beating [REF].