Ethics in general means anything allowed by morality, regardless of the legislation.
However, where laws observe the morality, an ethical conduct is also a legal conduct.
Ethics in a particular profession means the right way of conduct according to the peculiar morality of that profession.
Violation of laws is punished by the state, i.e. fine, imprisonment etc.
However, punishment for violation of ethics is often limited to negative reaction of the concerning people.
It is so until the rules of ethics get codified and become effective as a law.