Created
October 23, 2009 13:45
-
-
Save jjn1056/216889 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use CatalystX::Declare; { | |
controller MyApp::Web::Controller::Error { | |
action start under '/start' as 'error' { | |
## I'd think this action would get called in a go but no! | |
} | |
under start { | |
final action not_found(@) is private { | |
$ctx->stash(missing => $ctx->request->uri); | |
$ctx->response->status(404); | |
} | |
final action unauthorized(@) is private { | |
$ctx->stash(blocked => $ctx->request->uri); | |
$ctx->response->status(401); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment