Mercurial > pub > Impl
comparison lib/IMPL/Web/UnsupportedMediaException.pm @ 407:c6e90e02dd17 ref20150831
renamed Lib->lib
| author | cin |
|---|---|
| date | Fri, 04 Sep 2015 19:40:23 +0300 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 406:f23fcb19d3c1 | 407:c6e90e02dd17 |
|---|---|
| 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 |
