an error 51 iphone restoring or upgraead

my iphone goes dead .only show itunes on updeat only goes hafe way show an unknow error 51 please help me .. even when i press resotr same thing happend error 51