Mercurial > pub > Impl
comparison Lib/IMPL/Web/UnsupportedMediaException.pm @ 245:7c517134c42f
Added Unsupported media type Web exception
corrected resourceLocation setting in the resource
Implemented localizable resources for text messages
fixed TT view scopings, INIT block in controls now sets globals correctly.
author | sergey |
---|---|
date | Mon, 29 Oct 2012 03:15:22 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
244:a02b110da931 | 245:7c517134c42f |
---|---|
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 |