Files are downloading when testing from local IDE but gets not found error when trying to download from deployed versions

we are observing a behavior which we need help in understanding why. During development while using local ide, we are able to download files but same files get “not found” error when we try to access it from deployed version. And its not happening for all the files but some files. we are connecting to same database
local version

deployed version