245
|
1 package IMPL::Web::UnsupportedMediaException;
|
|
2 use strict;
|
|
3
|
|
4 use IMPL::declare {
|
|
5 base => {
|
|
6 'IMPL::Web::Exception' => '@_'
|
|
7 }
|
|
8 };
|
|
9
|
|
10 sub status {
|
|
11 "415 Unsupported Media Type"
|
|
12 }
|
|
13
|
|
14 1;
|
|
15
|
|
16 __END__
|
|
17
|
|
18 =pod
|
|
19
|
|
20 =head1 NAME
|
|
21
|
|
22 C<IMPL::Web::UnsupportedMediaException> - 415 Unsupported Media Type
|
|
23
|
|
24 =head1 DESCRIPTION
|
|
25
|
|
26 The request entity has a media type which the server or resource does not
|
|
27 support. For example, the client uploads an image as C<image/svg+xml>, but the
|
|
28 server requires that images use a different format.
|
|
29 L<http://en.wikipedia.org/wiki/List_of_HTTP_status_codes>
|
|
30
|
|
31 =cut |