A code of honor is a system of moral rules.