Added better error message for unsupported rpc methods.