Starting from Artifactory version 7.68.0, you can enable the following property in the $JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties file on the instance used to send the download request to the Smart Remote Repository. This will ensure that the Smart Remote Repository returns the appropriate status and error message:
artifactory.xray.remote.validation=true
After enabling this property and restarting the Artifactory instance, the "404" message should be replaced with the following output:
{ "errors" : [ { "status" : 403, "message" : "Blocked by Xray" } ] }
*For more information, refer to RTFACT-29813 .