summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-09-27 11:04:57 +0200
committerGitHub <noreply@github.com>2016-09-27 11:04:57 +0200
commit6a3e0f33b311e551c78d8fbf1bd8832676789168 (patch)
treea9970b4b2bea0675f27006dca164c6f66ef2ad23 /lib
parent810f72df4644793673026c7490b5b2fe794ed05f (diff)
parent78210c83002fce9c0ea71c86409e46a46ba5d759 (diff)
downloadnextcloud-server-6a3e0f33b311e551c78d8fbf1bd8832676789168.tar.gz
nextcloud-server-6a3e0f33b311e551c78d8fbf1bd8832676789168.zip
Merge pull request #1489 from nextcloud/fix-status-code-when-app-is-disabled
Return 404 on v2.php when the app is disabled
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/ocs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/ocs.php b/lib/private/legacy/ocs.php
index 2ed17e7dae0..a03cba7bc1a 100644
--- a/lib/private/legacy/ocs.php
+++ b/lib/private/legacy/ocs.php
@@ -37,7 +37,7 @@ class OC_OCS {
$format = \OC::$server->getRequest()->getParam('format', 'xml');
$txt='Invalid query, please check the syntax. API specifications are here:'
.' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n";
- OC_API::respond(new OC_OCS_Result(null, API::RESPOND_UNKNOWN_ERROR, $txt), $format);
+ OC_API::respond(new OC_OCS_Result(null, API::RESPOND_NOT_FOUND, $txt), $format);
}
}