You can fix most update and restore errors with a few simple steps. Try these first:
Get the latest version of iTunes on your computer.
Update your OS.
Check your computer’s security software.
You might need to update, change, disable, or uninstall software that’s causing an issue.
Unplug extra USB devices.
Keep only your iOS device, keyboard, and mouse plugged in directly to your computer.
Turn off your computer and your device. Then turn them on again.
Update or restore your iOS device again.
Get more help.
If you tried these steps and the error happens again, follow the advanced steps for your error code.