I'm having a hard time buying that. As I understand it, the U.S. has a National Electrical Code that may or may not be adopted by a state, so I'm not sure that you can generalize to what is or is not a code violation in the U.S. Also, even if a person's state adopts the NEC, the code would only govern the installation of the NEMA 14-50 outlet in this circumstance. As long as that outlet complies with the code, what gets plugged into it should not matter. I can't imagine that the drafters of an electrical code would waste their time on an unenforceable provision stating that only specified items on a list could be plugged into a receptacle. If I want to build a homemade industrial-strength compressor in my garage and plug it into a NEMA 14-50, that's my business. If I want to have a HPWC that I purchased modified to have a plug on the end of it, and plug that into a 14-50, that also is my business, and if I sell the house and disconnect the HPWC to take with me, how is the house not up to code when the buyer inspects it?