newkey does not yet exist.
It returns an error under the same conditions as RENAME.
Integer reply, specifically:
keywas renamed to
redis> SET mykey "Hello"
OKredis> SET myotherkey "World"
OKredis> RENAMENX mykey myotherkey
(integer) 0redis> GET myotherkey