Excerpts from the Code of Hammurabi, a law written in 1760 BC..
229. If a builder has built a house for a man, and has not made his work sound, and the house he built has fallen, and caused the death of its owner, that builder shall be put to death.
230. If it is the owner’s son that is killed, the builder’s son shall be put to death.
231. If it is the slave of the owner that is killed, the builder shall give slave for slave to the owner of the house.