Slave codes were stated laws established to determine the status of slave and the rights of their owners. Slave codes placed harsh restitution on slaves' already limited freedoms, often in order to preempt rebellion or escape, and gave slave owners absolute power over their slaves.