What is the dress code to visit Saint Peter's Basilica?

Appropriate attire is required for a place of worship: shoulders and knees must be covered for both men and women.