Improve server response for certain failures.

Send more appropriate status codes for failures during SYNC_ADD
and SYNC_MODIFY commands.
Typos in comments.