I don't recall any specific code requirement for tubspout material other than that it meet the specifications for water distribution piping.
But I will say that the only type of piping that should be used for that is a rigid metallic pipe, copper (really good), brass (really good), or galvanized(acceptable). I would strongly recommend that you do not use any type of plastic piping for a tubspout stubout.