Issue Description:

ARTIFACTORY: Why downloads with 403 status with "download blocking policy" error in the source instance then resulted in 404 error using Smart Remote Repository

AuthorFullName__c
Yonatan Hen
articleNumber
000005894
ft:sourceType
Salesforce
FirstPublishedDate
2023-10-19T14:47:27Z
lastModifiedDate
2023-10-18
VersionNumber
2
When attempting to retrieve artifacts from an Artifactory instance with Xray configured, and the "Block Download"/"Block unused artifacts" option is enabled in a Policy, the expected behavior is to block downloads as shown below:
curl -u username http://ARTIFACTORY_URL/artifactory/<repository name>/<path to file>

{
"errors" : [ {
"status" : 403,
"message" : "The request to download the artifact was rejected: <path to file> was not downloaded due to the download blocking policy configured at <ARTIFACTORY_URL>."
} ]
}

However, when attempting to resolve the same artifacts using a Smart Remote Repository that points to the same repository in the Artifactory instance mentioned above, a "404" error message is displayed instead of the original 403 message that should be displayed:
curl -u username http://ARTIFACTORY_URL/artifactory/<smart remote repository name>/<path to file>

{
"errors" : [ {
"status" : 404,
"message" : "Forbidden"
} ]
}