This Apple doc should help ya out -> iTunes: Specific update-and-restore error messages and advanced troubleshooting
Error 2, 4 (or -4), 6, 1000, 9006
- Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
- There may be third-party software that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your registry. Your default packet size being set incorrectly can cause these errors. Contact the manufacturer of the software that installed the packet size modification for assistance or follow this article by Microsoft: How to reset Internet Protocol (TCP/IP).
- Verify that access to ports 80 and 443 are allowed on your network.
- Verify that communication to albert.apple.com or photos.apple.com is not blocked by a firewall, or other Internet security setting.
- Discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations.
- Restore your device while connected to a different network.
- Restore using a different computer.
If you don't want to go through those steps, you can always try restoring the iPhone from another computer.