Error handling fixes in CAS.

One particular case that looked wrong here was that it should've
converted a response to an error when an add failed.