Sync Gateway: update _session error code that is returned