iTunes Error 5002
The hard drive on my Macbook Pro recently died so I had to get a new one and install OS X Yosemite on it. After setting everything up, I tried to download my music from iCloud to my iTunes, but I keep receiving the error message 5002 saying "Please check that the connection to the network is active and try again". i have tried updating my payment info, as well as de authorizing and reauthorizing my computer with my account. A majority of my music wasn't purchased through iTunes, but the music that was downloaded ok. Any suggestions?
MacBook Pro, OS X Yosemite (10.10.5), Macbook 5,5