aboutsummaryrefslogtreecommitdiff
path: root/controller/guicontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/guicontroller.php')
-rw-r--r--controller/guicontroller.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/controller/guicontroller.php b/controller/guicontroller.php
index b09ef4a..8ebea8c 100644
--- a/controller/guicontroller.php
+++ b/controller/guicontroller.php
@@ -96,7 +96,9 @@ class GuiController extends Controller
$note = $this->getNotes()->load($guid, false);
if ($note === null) {
- return new ErrorResponse('Note does not exist');
+ $res = new ErrorResponse('Note does not exist');
+ $res->setStatus(\OCP\AppFramework\Http::STATUS_NOT_FOUND);
+ return $res;
}
$converter = new \OCA\Grauphel\Converter\Html();