memcacheAndRestClientRefManualDraft, and small code changes related to R...

...est response codes