iPhone 3gs 'Bricked'
That is Apple's solution, maybe it helps.

Check for hardware issues
Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.