No, unfortunately, you cannot.
404 errors are handled internally; you cannot suppress an error without even overwriting the error events in javascript or trying to catch it.
You can write servercript to check if a specific file exists and call it to check if a file exists before calling a file that may not exist.
source share