Knights were expected to follow the code of chivalry.