Hammurabi’s Building Code

Pretty much what you’d expect:

§229. If a builder build a house for some one, and does not construct it properly, and the house which he built fall in and kill its owner, then that builder shall be put to death.