With Catalyst::Plugin::Static::Simple loaded, when I request a path like
'/static/non-existent-file', the plugin does stuff like $c->res->status(404)
for me by default. However, as I already have the following in
MyApp::Controller::Root:

sub default : Private {
  my( $self, $c ) = @_;
  $c->res->status( 404 );
  $c->res->body( ...  );
}

I'd like to use my existing default action to display something a bit more
user friendly when the requested static file is missing. In this case I'm
using the test server so bypassing Catalyst::Plugin::Static::Simple
completely is not an option.

What's the correct way to implement the above?
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to