From b0a296e2e1dd1b173d9cab8c82158ac6bfb86f9e Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 26 Jun 2018 12:15:09 +0200 Subject: Do not use HTTP code OC_Response constants anymore Signed-off-by: Morris Jobke --- lib/base.php | 2 +- lib/private/legacy/response.php | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/base.php b/lib/base.php index 598e3ed5757..8ca4a371afb 100644 --- a/lib/base.php +++ b/lib/base.php @@ -432,7 +432,7 @@ class OC { } catch (Exception $e) { \OC::$server->getLogger()->logException($e, ['app' => 'base']); //show the user a detailed error page - OC_Template::printExceptionErrorPage($e, \OC_Response::STATUS_INTERNAL_SERVER_ERROR); + OC_Template::printExceptionErrorPage($e, 500); die(); } diff --git a/lib/private/legacy/response.php b/lib/private/legacy/response.php index 2fc7b934d86..93023f61e99 100644 --- a/lib/private/legacy/response.php +++ b/lib/private/legacy/response.php @@ -31,15 +31,6 @@ */ class OC_Response { - const STATUS_FOUND = 302; - const STATUS_NOT_MODIFIED = 304; - const STATUS_TEMPORARY_REDIRECT = 307; - const STATUS_BAD_REQUEST = 400; - const STATUS_FORBIDDEN = 403; - const STATUS_NOT_FOUND = 404; - const STATUS_INTERNAL_SERVER_ERROR = 500; - const STATUS_SERVICE_UNAVAILABLE = 503; - /** * Sets the content disposition header (with possible workarounds) * @param string $filename file name -- cgit v1.2.3