Make the not defined error codes unique.

The generalized case macro fails to compile in cases where the codes are not unique..