aboutsummaryrefslogtreecommitdiff
path: root/controller/guicontroller.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2015-03-17 19:53:17 +0100
committerChristian Weiske <cweiske@cweiske.de>2015-03-17 19:53:17 +0100
commite19fc06310e26dab3ec372fb01676a802fc02234 (patch)
treeedece44d7c113191c1dd2d671e1d2d214a5fe190 /controller/guicontroller.php
parente74217a7bbd58cf76963c15c73221669e1153510 (diff)
downloadgrauphel-e19fc06310e26dab3ec372fb01676a802fc02234.tar.gz
grauphel-e19fc06310e26dab3ec372fb01676a802fc02234.zip
Send 404 if a note cannot be found
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();