[Catalyst] "or die" replacement?

apv apv at sedition.com
Fri Mar 17 02:37:48 CET 2006


On Thursday, March 16, 2006, at 05:24  PM, A. Pagaltzis wrote:
> * apv <apv at sedition.com> [2006-03-16 20:10]:
>> And giving a pretty site formatted error page and providing the
>> error chain if debug is on, otherwise just giving the general
>> http status info: "404: resource not found" etc.
>
> You want generally want 500, unless the resource does actually
> not exist. 4xx statuses are things which are the client’s fault;
> things which the server’s fault in some way are signalled using
> 5xx.
>
Of course. I chose that code randomly but it brings us back
full circle to my problem with the default path argument handling. :)

Alla:
  my ( $self, $c, $desired_arg, $no ) = @_;
  die "RC_404" if $no;



More information about the Catalyst mailing list