CURVE: Implement client-side ERROR handling
Merge pull request #1036 from hurtonm/master

CURVE: Implement client-side ERROR handling