Similarly, going back another couple of thousand years: Code of Hammurabi (c. 1700 B.C.E.)
228. If a builder build a house for a man and complete it, (that man) shall give him two shekels of silver per SAR of house as his wage.
229. If a builder build a house for a man and do not make its construction firm, and the house which he has built collapse and cause the death of the owner of the house, that builder shall be put to death.
230. If it cause the death of a son of the owner of the house, they shall put to death a son of that builder.
231. If it cause the death of a slave of the owner of the house, he shall give the owner of the house a slave of equal value.
232. If it destroy property, he shall restore whatever it destroyed, and because he did not make the house which he built firm and it collapsed, he shall rebuild the house which collapsed from his own property (i.e., at his own expense).
233. If a builder build a house for a man and do not make its construction meet the requirements and a wall fall in, that builder shall strengthen that wall at his own expense.
228. If a builder build a house for a man and complete it, (that man) shall give him two shekels of silver per SAR of house as his wage.
229. If a builder build a house for a man and do not make its construction firm, and the house which he has built collapse and cause the death of the owner of the house, that builder shall be put to death.
230. If it cause the death of a son of the owner of the house, they shall put to death a son of that builder.
231. If it cause the death of a slave of the owner of the house, he shall give the owner of the house a slave of equal value.
232. If it destroy property, he shall restore whatever it destroyed, and because he did not make the house which he built firm and it collapsed, he shall rebuild the house which collapsed from his own property (i.e., at his own expense).
233. If a builder build a house for a man and do not make its construction meet the requirements and a wall fall in, that builder shall strengthen that wall at his own expense.
https://en.wikisource.org/wiki/The_Code_of_Hammurabi_(Harper...
https://fs.blog/2017/11/hammurabis-code/