A code of ethics sets out moral and ethical principles to guide the behavior of employees within a company.