Ethics are rules of conduct set by professional groups that their members should follow. 
They are usually constructed by the professional institute and may be conditional for membership of that institute.
It is becoming more common for regulatory statutes to incorporate professional codes of conduct.
See API's rules of conduct.