. "In criminal trials, the insanity defense is the claim that the defendant is not responsible for his or her actions during a mental health episode (psychiatric illness or mental handicap). Exemption of the insane from full criminal punishment dates back to at least the Code of Hammurabi."@en .