move errors into constants
use errors constant fns
Merge pull request #4 from clusterapp/standardise-errors

Extract out common errors