I believe the answer is: Sumerian law
The code of hammurabi consist of strict 'an eye for an eye' types of regulation (if you were caught stealing, your hands would be chopped off), while the punishment from the sumerian law would be determined by the capital depending on the severity.
The Sumerian law and the code of Hammurabi are the two earliest-known comprehensive statements regarding what behavior was prohibited and punishable.