From 0b7d9e2668e3a2e2049eb84f9c49fac41d71d35e Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Sun, 4 May 2014 15:51:08 +0200 Subject: Cleanup code a little bit - Use OCP\Response constants instead of the HTTP error code - Use checkAppEnabled() instead of OC_App::isEnabled with an if statement - Remove uneeded variable $baseURL - Rename $isvalid to $isValid --- lib/private/response.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/private/response.php b/lib/private/response.php index 1aa5e629b8b..19df9719dee 100644 --- a/lib/private/response.php +++ b/lib/private/response.php @@ -10,6 +10,7 @@ class OC_Response { const STATUS_FOUND = 304; const STATUS_NOT_MODIFIED = 304; const STATUS_TEMPORARY_REDIRECT = 307; + const STATUS_BAD_REQUEST = 400; const STATUS_NOT_FOUND = 404; const STATUS_INTERNAL_SERVER_ERROR = 500; const STATUS_SERVICE_UNAVAILABLE = 503; -- cgit v1.2.3