asp.net 4.8 webform, how to intercept a 404 like /mydir/pippo.js (mydir don't exist and pippo.js don't exist)
Although I do not understand what "intercept" means, I guess that the custom error page probably solve your issue. Please read the following Microsoft document for detail: