Professional ethics codes provide guidelines for architects to fulfill their obligations to the public, clients, profession, and colleagues. They establish principles like honesty, integrity, competence, avoiding conflicts of interest, and prioritizing public safety over personal interests. Problems involving dishonesty, unreviewed work, unfair bidding practices, and retaliation against critics can violate these principles. The codes help architects maintain trust and respect from stakeholders.