nextcloud/lib/private/connector/sabre/exception/unsupportedmediatype.php

23 lines
380 B
PHP
Raw Normal View History

<?php
/**
* Unsupported Media Type
*
* This exception is thrown whenever a user tries to upload a file which holds content which is not allowed
*
*/
class OC_Connector_Sabre_Exception_UnsupportedMediaType extends \Sabre\DAV\Exception {
2013-10-08 17:40:42 +04:00
/**
* Returns the HTTP status code for this exception
*
* @return int
*/
public function getHTTPCode() {
2013-10-08 17:40:42 +04:00
return 415;
2013-10-08 17:40:42 +04:00
}
}