Here are the steps to reproduce the issue
Make sure the repository doesn't have anonymous read permissions
1. Enable ‘Allow Anonymous Access’ from ‘General Security Configuration
2. Enable ‘Hide Existence of Unauthorized Resources’ from ‘General Security Configuration’
ip-10-8-16-47:~ lakshmiprasad$ curl http://<Artifactory_URL>/artifactory/list/libs-release-local
{ "errors" : [
{ "status" : 404, "message" : "Resource not found" }]
However, when we add slash '/' at the end it is throwing 401 instead of 404
ip-10-8-16-47:~ lakshmiprasad$ curl http://<Artifactory_url>/artifactory/list/libs-release-local/
{ "errors" : [
{ "status" : 401, "message" : "Unauthorized"}]