It is possible to way to achieve the request parameters "forward on" towards the custom error file in apache similar to [QSA] does on rewrite rules?

basically submit www.foo.com/doesnotexist?bar=true

and that i have this in vhost:

ErrorDocument 404 /customerrorpage

it would call customerrorpage with:

customerrorpage?bar=true