This will request no authentication, if the Request URI has /error/ in it.

SetEnvIf Apache

Enjoy coding …