Iniquity, transgression and sin
In the Word three terms are used to refer to bad actions: transgression, iniquity, and sin. Transgression is the least bad. It means a violation of what is true in an external context, a violation of what is right and orderly. Iniquity is next and denotes acts that violate more interior truths. Sin is the worst. It is a violation of what is holy and righteous, a violation against the Lord. Sin is the deepest kind of evil. Regarding iniquity -- to be in charity, or live a life of charity is to live a life where the acts and thoughts that have top priority are those that have within them a love for the neighbor. Sometimes our love of self, our inborn desire to put ourselves first, is stronger than our charity and we do something for ourselves at the expense of our neighbor, or even do harm to our neighbor. Such an act, if our motive is selfish, is an iniquity.
(Reference: Arcana Coelestia 9156, 9965 [2-3])
Arcana Coelestia #491
491. The same things are meant by 'sons and daughters' in verses 4, 7, 10, 13, 16, 19, 26, 30, of this chapter, but the character of a Church determines that of its 'sons and daughters', or goods and truths. Here they are truths and goods that men perceived most clearly, for they have regard to the Most Ancient Church, the head and forefather of all other Churches that followed after it.