Why my iPhone is not updating the ios ?

I have iPhone 5s and it is telling me to update ios when I updated it says an error in downloading ios 9.9.10.0.1 . Now it has failed to update. What is the problem and how can i solve it?
Restart your device and try again.
If you're phone is jailbroken, update via iTunes.
My iPhone is telling me to update iOS yet when I try to update , it tells me an error has occurred when downloading iOS 9.9.10.0.1 help me please.
I had tried all means and failed
Try updating with iTunes.
https://support.apple.com/en-us/HT204204
1. You can wait a few minutes or a few hours to try it again.
2. Update your iPhone via iTunes.
3. Check your WI-Fi connection.
4. Reset your Network Settings.
5. Reset your device.
6. Upgrade with IPSW File.

Original thread: https://forums.imore.com/threads/why-my-iphone-is-not-updating-the-ios.373763/