remove warning and update error code to follow jsonrpc spec.