Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/ApiService.php')
-rw-r--r--lib/Service/ApiService.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php
index 83a7a8124..c6a35c610 100644
--- a/lib/Service/ApiService.php
+++ b/lib/Service/ApiService.php
@@ -145,7 +145,7 @@ class ApiService {
}
return new DataResponse($steps);
}
- return new DataResponse([], 500);
+ return new DataResponse([], 403);
}
public function sync($documentId, $sessionId, $sessionToken, $version = 0, $autosaveContent = null, bool $force = false, bool $manualSave = false, $token = null): DataResponse {
@@ -176,6 +176,8 @@ class ApiService {
} catch (LockedException $e) {
// Ignore locked exception since it might happen due to an autosave action happening at the same time
}
+ } catch (NotFoundException $e) {
+ return new DataResponse([], 404);
} catch (Exception $e) {
$this->logger->logException($e);
return new DataResponse([