Mercurial > pub > Impl
comparison Lib/IMPL/Web/PreconditionException.pm @ 321:3dc9260017ad
Added JSON support for the request action
author | cin |
---|---|
date | Mon, 20 May 2013 01:14:27 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
320:28eba7e0c592 | 321:3dc9260017ad |
---|---|
1 package IMPL::Web::PreconditionException; | |
2 use strict; | |
3 | |
4 use IMPL::declare { | |
5 base => { | |
6 'IMPL::Web::Exception' => '@_' | |
7 } | |
8 }; | |
9 | |
10 use IMPL::Resources::Strings { | |
11 message => "Precondition Failed" | |
12 }; | |
13 | |
14 sub status { | |
15 "412 Precondition Failed" | |
16 } | |
17 | |
18 1; | |
19 | |
20 __END__ | |
21 | |
22 =pod | |
23 | |
24 =head1 NAME | |
25 | |
26 C<IMPL::Web::PreconditionException> - The precondition given in one or more of | |
27 the request-header fields evaluated to false when it was tested on the server. | |
28 | |
29 This response code allows the client to place preconditions on the current | |
30 resource metainformation (header field data) and thus prevent the requested | |
31 method from being applied to a resource other than the one intended. | |
32 | |
33 =cut |