Added dogecoind error code as a property on the Error instance when an error occurs

I'm currently writing a system that needs to unlock a wallet when the RPC response indicates an unlock is required. The easiest way I found to do this is to observe the error code when a request fails. Perhaps we could expose all the error object's fields on the Error instance.