Not to throw too big of a monkey wrench into this discussion, but I hold to the opinion that a chaotic character can, indeed, hold to a code of honor.
The point is, though, that it's a personal code as opposed to one from an outside source; i.e., a guild, knightly order, war college, etc...