Ethical codes are specialized and specific codes of ethics. Such codes exist in most professions to guide interactions between specialists with advanced knowledge, e.g. doctors, lawyers, engineers, stonemasons, and the general public. They are often not part of any more general theory of ethics but accepted as pragmatic necessities.
Ethical codes are distinct from moral codes that apply to the education and religion of a whole society.