[Catalyst] proposed plugin for http status codes

Yuval Kogman nothingmuch at woobling.org
Sat Jul 8 19:42:16 CEST 2006

On Sat, Jul 08, 2006 at 06:05:09 -0700, John Napiorkowski wrote:

> $c->response->status($c->response->RC_NOT_FOUND);
> or
> if( $->response->is_success($c->response->status) ) {...}

That's no fun.

If you are going to be passing around the status value why  pollute
the response namespace?

$c->response->is_success,  $c->response->not_found etc should be
what it looks like to make sense as a plugin. For anything else you
have HTTP::Status already - just load and use it.

  Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org  0xEBD27418

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060708/17d83b1d/attachment.pgp 

More information about the Catalyst mailing list