This would be the Code of Chivalry, which not only covered aspects of combat and law, but also required the knight to have various qualities, such a bravery, honor, and other such things. Nowadays we use the term "chivalrous" to describe people with these same traits.