Those error codes mean phone is not in Pwned DFU mode during restore.
Here is a way to make sure your iphone is...in fact...in "Pwned" DFU mode.
1. Turn the speaker up on your computer
2. When ever you put your phone in DFU mode you will hear 2 sets of beeps...one around 8 seconds & then again around 18 seconds. Pay attention to the sound.
3. Run iREB to put your phone in Pwned DFU mode...you should ONLY hear a high pitched "ding" when Pwned, NOT any beeps as well...like when putting into DFU.
iREB will STILL display message that phone is in Pwned DFU mode when this happens (ding & beeps). But, your phone is kicked back into DFU mode.
When this happens, close iREB, put your phone back in DFU & run iREB again. If all you hear is the "ding", you should be able to bypass those errors.