diff --git a/ServiceAPI/Notes.php b/ServiceAPI/Notes.php index c0ecfc32..456cfaee 100644 --- a/ServiceAPI/Notes.php +++ b/ServiceAPI/Notes.php @@ -19,12 +19,12 @@ class Notes implements Handler { $note = $this->notes->get($noteId); if(!$note || $note->isDeleted()) - $reject("Note is gone"); + $reject(83, "Note is gone"); $noteOwner = $note->getOwner(); assert($noteOwner instanceof User); if(!$noteOwner->getPrivacyPermission("notes.read", $this->user)) - $reject("You don't have permission to access this note"); + $reject(160, "You don't have permission to access this note"); $resolve([ "title" => $note->getName(), @@ -38,4 +38,4 @@ class Notes implements Handler ], ]); } -} \ No newline at end of file +}