Unexported ErrCodeName, add some comments on error types