PROLOGUE
"If any one bring an accusation of any crime before the elders, and does not prove what he has charged, he shall, if it be a capital offense charged, be put to death."
Here you can see that people were assumed to be innocent until proven guilty, both parties had to provide evidence.
It was written in three parts; the first starts off with the historical prologue, the second part is the epilogue- a summary of King Hammurabi's life and third part describes the 282 laws and legal decisions concerning Babylon. There are also three classes that the population of Babylonia falls into. The code explains who the are. They are the amelu, muskinu and ardu.
The Amelus were registered men with families who had full civil rights, who had privileges and responsibilities and could be tried for heavy punishments and fines. The King, higher officials, craftsmen, other professions or anyone could be considered this.
The Muskinus were homeless beggars, they paid small fees and fines and gave small offerings to the gods.
The Ardus were slave men, captives from war or freemen who commited a crime or couldn't pay back their debts. Ardus could aquire property and other slaves. They're looked after by their Masters and can even marry either a slave woman or a free woman. If a slave marries a free woman, his children will also be free and when that slave dies one- half of his property is passed to his Master and the other to his heir. The Ardus made up most of the population.
Besides being put to death or having an appendage chopped off, guilty parties were often told to throw themselves into the Euphrates river, if they were able to make it to the other side they were deemed not guilty and instead the accuser would be punished by most likely being put to death.
In this picture it can't exactly be seen but below the upper part of the stele are carvings etched into the slab is the Code of Hammurabi. Above you can see Hammurabi the man standing receiving the law from the enthroned sun god Shamash.
Back then, the people of Babylon were expected to know what their gods expected of them.