Domain error and validation error codes