NEMA Type 12 enclosures are for indoor use and protect against dirt, rain, light splash and with noncorrosive liquids.
NEMA Type 4 enclosure is for outdoor use and protects against dirt, rain, sleet, snow, splash and hose down with noncorrosive liquid.