Reaction of the body to substances with a protein structure similar to that of the primary protein.