1<?php 2 3namespace Sabre\DAV\Exception; 4 5use Sabre\DAV; 6 7/** 8 * UnSupportedMediaType 9 * 10 * The 415 Unsupported Media Type status code is generally sent back when the client 11 * tried to call an HTTP method, with a body the server didn't understand 12 * 13 * @copyright Copyright (C) fruux GmbH (https://fruux.com/) 14 * @author Evert Pot (http://evertpot.com/) 15 * @license http://sabre.io/license/ Modified BSD License 16 */ 17class UnsupportedMediaType extends DAV\Exception { 18 19 /** 20 * returns the http statuscode for this exception 21 * 22 * @return int 23 */ 24 function getHTTPCode() { 25 26 return 415; 27 28 } 29 30} 31