view lib/IMPL/Web/NotAllowedException.pm @ 408:5c80e33f1218 ref20150831

added 'coarsen' function
author cin
date Mon, 07 Sep 2015 01:35:25 +0300
parents c6e90e02dd17
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__