Codes of ethics, such as the American Nurses Association (ANA) Code of Ethics, provide guidelines for ethical practice. These codes outline the responsibilities and duties of nurses, helping them navigate complex ethical situations and maintain professional integrity.