diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-28 12:39:22 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-07-28 17:28:42 +0200 |
commit | 663e8bc5e2f1d7e788fc308e042e3575493c5fc8 (patch) | |
tree | 20b1c997119fa99fe273fcb6eaf08e64190f755c | |
parent | 2e28b7fff982aff352f82bafa1e2cf4ec23956ff (diff) | |
download | nextcloud-server-663e8bc5e2f1d7e788fc308e042e3575493c5fc8.tar.gz nextcloud-server-663e8bc5e2f1d7e788fc308e042e3575493c5fc8.zip |
adjust error code
-rw-r--r-- | apps/files_sharing/lib/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/api.php b/apps/files_sharing/lib/api.php index 368e3172c6b..faf141db25f 100644 --- a/apps/files_sharing/lib/api.php +++ b/apps/files_sharing/lib/api.php @@ -411,7 +411,7 @@ class Api { if ($share['item_type'] !== 'folder' || (int)$share['share_type'] !== \OCP\Share::SHARE_TYPE_LINK ) { - return new \OC_OCS_Result(null, 404, "public upload is only possible for public shared folders"); + return new \OC_OCS_Result(null, 400, "public upload is only possible for public shared folders"); } // read, create, update (7) if public upload is enabled or @@ -431,7 +431,7 @@ class Api { private static function updateExpireDate($share, $params) { // only public links can have a expire date if ((int)$share['share_type'] !== \OCP\Share::SHARE_TYPE_LINK ) { - return new \OC_OCS_Result(null, 404, "expire date only exists for public link shares"); + return new \OC_OCS_Result(null, 400, "expire date only exists for public link shares"); } try { |