
Catalyst::authentication::credential::http lets you use http authentication with catalyst::plugin::authentication. both basic and digest authentication are currently supported.
when authentication is required, this module sets a status of 401, and the body of the response to 'authorization required.'. to override this and set your own content, check for the "$c->res->status == 401" in your "end" action, and change the body accordingly.