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
Wouldn't it make more sense to check for a valid response status code before reading the response body?