Re: [Catalyst] Please Help: Aborting a Catalyst request in auto method

2017-04-16 Thread Gerhard Jungwirth
It looks okay actually, documentation: "If an |auto| action returns 0, any remaining actions will be skipped, except for |end|". It goes directly to end. You should restructure your code probably, so that the main handling doesn't happen in end. You can also use detach if you want. Also you

[Catalyst] Please Help: Aborting a Catalyst request in auto method

2017-04-16 Thread Rajesh Kumar Mallah
Hi , I want to return HTTP Status 401 along with a body indicating the friendly description from my auto method. so i have below in my auto: = sub auto :Private { my ( $self, $c ) = @_; my $path = $c->request->path ;