I don't understand this question at all. ErrorDocument is tied by the server to respond when a 404 is issued. It intercepts the standard 404 header and instead presents a valid page to the client. If file does not exists = 404 error.
If there is anything that a webhost can do, its determine what its return code is.