annotate Lib/IMPL/Web/PreconditionException.pm @ 343:9bdccdf1f50b

Added a templates context
author cin
date Fri, 13 Sep 2013 12:53:15 +0400
parents 3dc9260017ad
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
321
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
1 package IMPL::Web::PreconditionException;
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
2 use strict;
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
3
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
4 use IMPL::declare {
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
5 base => {
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
6 'IMPL::Web::Exception' => '@_'
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
7 }
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
8 };
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
9
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
10 use IMPL::Resources::Strings {
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
11 message => "Precondition Failed"
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
12 };
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
13
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
14 sub status {
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
15 "412 Precondition Failed"
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
16 }
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
17
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
18 1;
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
19
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
20 __END__
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
21
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
22 =pod
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
23
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
24 =head1 NAME
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
25
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
26 C<IMPL::Web::PreconditionException> - The precondition given in one or more of
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
27 the request-header fields evaluated to false when it was tested on the server.
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
28
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
29 This response code allows the client to place preconditions on the current
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
30 resource metainformation (header field data) and thus prevent the requested
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
31 method from being applied to a resource other than the one intended.
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
32
3dc9260017ad Added JSON support for the request action
cin
parents:
diff changeset
33 =cut