IPhone 3gs Firmware Update Error

Hello! I need help with my iPhone 3gs with 16gb capacity because it’s giving me this error codes 1015 everytime I update the firmware. I have no idea where to go from here and what seems to be the problem. Can anyone help?
