'code of ethics' is enforceable by the organisation if violated. For example, if an employee is found violating certain norms, the organisation can initiate disciplinary proceedings. If due process of law ie., principles of natural justice is followed in such proceedings, Court will not interfere. The SC has held in several cases that the courts should not interfere in administrative functions.
However, if unreasonable ethics code is imposed on an employee, he can seek judicial remedy, if he was affected by such code.