]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/DAV/Exception/UnsupportedMediaType.php
9a4693b21a8aecfc25b153710c98bc980b4fb9d5
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / DAV / Exception / UnsupportedMediaType.php
1 <?php
2
3 /**
4  * UnSupportedMediaType
5  *
6  * The 415 Unsupported Media Type status code is generally sent back when the client
7  * tried to call an HTTP method, with a body the server didn't understand
8  *
9  * @package Sabre
10  * @subpackage DAV
11  * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
12  * @author Evert Pot (http://www.rooftopsolutions.nl/)
13  * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
14  */
15 class Sabre_DAV_Exception_UnsupportedMediaType extends Sabre_DAV_Exception {
16
17     /**
18      * returns the http statuscode for this exception
19      *
20      * @return int
21      */
22     public function getHTTPCode() {
23
24         return 415;
25
26     }
27
28 }