When a site calls a .js file on our server, we run code that returns a custom JSON file pre-configured based on the page calling the .js file. So... when a page calls the .js file from a page that we do not have configured JSON for, a 404 gets generated... which we would like to change in .htaccess so that a blank JSON file is returned instead (so redirect to a 200 blank JSON).
Is there an easy way to do that? we don't have a problem is a 404 is NEVER returned, as the domain does not host web pages,