How do I update my iPhone to an older version of iOS, such as iOS 7.1?
You can't install an older version like iOS 7.1 on a non-jailbroken iPhone. Apple only lets you update to the latest iOS your model supports, and you should do that, because updates often bring important security fixes.