summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-05 17:49:44 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-05 17:49:44 +0200
commitdb1416346c4f6bd16afeaa454b16f6a2f8112ade (patch)
tree1e00d18a8ebd02a9cd4a8e2d7936fee64f9c476c /lib
parent7cb0934fa27a512b2e409361fe283d9c15560327 (diff)
downloadnextcloud-server-db1416346c4f6bd16afeaa454b16f6a2f8112ade.tar.gz
nextcloud-server-db1416346c4f6bd16afeaa454b16f6a2f8112ade.zip
Following the spec:
"`statuscode`: The OCS status code of the response, everything except 100 MUST be handled as failure."
Diffstat (limited to 'lib')
-rw-r--r--lib/private/api.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/api.php b/lib/private/api.php
index 86d7558526b..6823a19881f 100644
--- a/lib/private/api.php
+++ b/lib/private/api.php
@@ -444,11 +444,7 @@ class OC_API {
return $sc;
}
- // any error codes > 100 are treated as client errors
- if ($sc > 100 && $sc < 200) {
- return Http::STATUS_BAD_REQUEST;
- }
- return Http::STATUS_OK;
+ return Http::STATUS_BAD_REQUEST;
}
/**