Mercurial > pub > Impl
view Lib/IMPL/Web/NotAllowedException.pm @ 326:793cc7f0a7e7
IMPL::Web::AutoLocator added Sibling method for locating sibling resources
author | sergey |
---|---|
date | Wed, 29 May 2013 17:58:45 +0400 |
parents | 673581380e79 |
children |
line wrap: on
line source
package IMPL::Web::NotAllowedException; use strict; use IMPL::Const qw(:prop); use IMPL::declare { base => [ 'IMPL::Web::Exception' => '@_' ] }; use IMPL::Resources::Strings { message => "The requested method isn't allowed" }; sub CTOR { my $this = shift; my %args = @_; $this->headers({ allow => $args{allow} }); } sub status { "405 Method Not Allowed" } 1; __END__