annotate Lib/IMPL/Web/UnsupportedMediaException.pm @ 374:6608db5dcb81

sync
author cin
date Thu, 09 Jan 2014 19:40:33 +0400
parents 7c517134c42f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
245
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
1 package IMPL::Web::UnsupportedMediaException;
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
2 use strict;
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
3
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
4 use IMPL::declare {
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
5 base => {
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
6 'IMPL::Web::Exception' => '@_'
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
7 }
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
8 };
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
9
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
10 sub status {
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
11 "415 Unsupported Media Type"
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
12 }
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
13
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
14 1;
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
15
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
16 __END__
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
17
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
18 =pod
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
19
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
20 =head1 NAME
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
21
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
22 C<IMPL::Web::UnsupportedMediaException> - 415 Unsupported Media Type
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
23
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
24 =head1 DESCRIPTION
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
25
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
26 The request entity has a media type which the server or resource does not
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
27 support. For example, the client uploads an image as C<image/svg+xml>, but the
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
28 server requires that images use a different format.
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
29 L<http://en.wikipedia.org/wiki/List_of_HTTP_status_codes>
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
30
7c517134c42f Added Unsupported media type Web exception
sergey
parents:
diff changeset
31 =cut