REST service updateUserStatus checks previous state and returns -2 in duplicate case