2013-10-07 13:11:47 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2015-02-23 10:28:53 +00:00
|
|
|
* @author Thomas Müller <thomas.mueller@tmit.eu>
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2015, ownCloud, Inc.
|
|
|
|
* @license AGPL-3.0
|
|
|
|
*
|
|
|
|
* This code is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
|
|
* as published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
2013-10-07 13:11:47 +00:00
|
|
|
*
|
2015-02-23 10:28:53 +00:00
|
|
|
* You should have received a copy of the GNU Affero General Public License, version 3,
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
2013-10-07 13:11:47 +00:00
|
|
|
*
|
|
|
|
*/
|
2014-01-09 13:25:48 +00:00
|
|
|
class OC_Connector_Sabre_Exception_EntityTooLarge extends \Sabre\DAV\Exception {
|
2013-10-07 13:11:47 +00:00
|
|
|
|
2013-10-08 13:40:42 +00:00
|
|
|
/**
|
|
|
|
* Returns the HTTP status code for this exception
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getHTTPCode() {
|
2013-10-07 13:11:47 +00:00
|
|
|
|
2013-10-08 13:40:42 +00:00
|
|
|
return 413;
|
2013-10-07 13:11:47 +00:00
|
|
|
|
2013-10-08 13:40:42 +00:00
|
|
|
}
|
2013-10-07 13:11:47 +00:00
|
|
|
|
|
|
|
}
|