The main chemical responsible for low pH of gastric juice

  The pH of gastric juice is 2, which is very acidic. What is the main chemical responsible for this low pH, and how does the stomach lining, which is composed of epithelial cells, endure this corrosive environment?