There has always been a code of conduct with NHL players voicing their opinions against the referees of the league. No matter how ugly or lack of call there is, players are expected to keep their opinions to themselves.
Okposo certainly did not mince his words, and it remains to be seen whether the NHL will fine him for his comments. The NHL takes a dim view towards criticism about their officials and have fined several NHL coaches over the years for their remarks.