ConfluenceAuthenticator with custom failedLogin message

Via a custom ConfluenceAuthenticator we are able to provide a remote authenticator. Since there can be multiple reasons for a failed login hereby, we’d like to know if and how it is possible to prompt a useful failed login error message on the login screen of the user. Currently it just says username or passwors is incorrect, which is not the truth and will make it hard to start debugging… So it would be nice to prompt a more adequate error message from the remote authenticator in order to point the user into the right direction why the login failed that will also make the investigation about easier.
Any ideas or suggestions?