Downloads a resource, checks its integrity, and stores it to a target path
If the resource couldn't be downloaded
If the expected and actual checksum of the downloaded file don't match.