don't unmarshall http error response

e.g 429 Too many requests is parsed and a cryptic error message is shown:

    rpcCommand: error reading json message: error unmarshalling json reply: invalid character 'T' after top-level value

instead, don't parse unless the response code indicates success
Perhaps it would be better to just return the error returned by the json package, instead of wrapping it.