How to fix error 40 on iTunes when my phone won't turn on? (iPhone 5s)?

My phone turned off today and wouldn't turn back on (battery was around 47%) I tried plugging it in but it wouldn't turn on. I plugged it into my computer, and it said "itunes could not connect to this iphone. An unknown error occurred (0xE8000065)" after I click ok, another window says "iTunes has detected that an iPhone is in recovery mode. You must restore this iPhone before it can be used with iTunes" so I click ok then restore iPhone. It says "extracting software" then "preparing iPhone for restore" then "waiting for iPhone" the screen then lights up and the update bar and apple symbol appear on the phone screen. Shortly thereafter it says "the iPhone "iPhone" could not be restored. An unknown error occurred (40)" I click ok, then the screen changes to my music library and my phone no longer shows up as an icon on iTunes. My computer also doesn't detect it on "my computer". I've reinstalled iTunes and restarted my computer and nothing has worked.

Your iPhone is PORTABLE.

So, take it back to the store where you bought it, and they will help you figure out what you did to put it into Recovery Mode.

  • Will metro pcs be able to fix a phone with a cracked screen that won't turn on? I have recently dropped my iPhone 8, and the whole screen and back side of the phone was completely cracked, I'm in distraught as the phone is now cracked very badly and won't turn on. There's a local metro pcs and I'm wondering if they will be able to repair my phone's damages, get it to turn on, and about how much it would cost. Quick replies would be seriously appreciated.
  • What is MF Message Error Domain error 1032? - 1 My iPhone keeps displaying this message and its really annoying. I have read that deleting your yahoo email profile can resolve this but will it erase all my emails currently on my iPhone. Or will it redownload them when I re-register my yahoo email account?
  • Trying to restore jailbroken iPhone 4, getting Itunes error 3194 and error 11 I want to wipe my jailbroken iphone 4, on ios 5, so i can update to ios 7. I used tiny umbrella and managed to get past the 3194 error, but then I'm getting error 11. I have tried to erase and reset through the phone only, but it simply shows an endless loading ticker, and not the apple logo and loading bar. How can I reset my phone? Thank you for anyone who can help! I also have the latest itunes
  • Why isn't my phone number on tmobile updated to my other phone? How to fix message blocking error? I got this iphone from my dad because he got a new phone. He let me use my grandmas old line and I got a new sim card. I tried texting and then getting this Message blocking error, i went on tmobile and the phone number is still on my grandmas old phone, why isn't it updated to my phone