summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib/RequestHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federatedfilesharing/lib/RequestHandler.php')
-rw-r--r--apps/federatedfilesharing/lib/RequestHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/RequestHandler.php b/apps/federatedfilesharing/lib/RequestHandler.php
index cefa5be1d38..01ab96822d8 100644
--- a/apps/federatedfilesharing/lib/RequestHandler.php
+++ b/apps/federatedfilesharing/lib/RequestHandler.php
@@ -251,7 +251,7 @@ class RequestHandler {
$this->federatedShareProvider->storeRemoteId((int)$result->getId(), $remoteId);
return new \OC_OCS_Result(['token' => $result->getToken(), 'remoteId' => $result->getId()]);
} catch (\Exception $e) {
- return new \OC_OCS_Result(null, Http::STATUS_INTERNAL_SERVER_ERROR);
+ return new \OC_OCS_Result(null, Http::STATUS_BAD_REQUEST);
}
} else {
return new \OC_OCS_Result(null, Http::STATUS_FORBIDDEN);