From a44cd66e654489f97768e15bcb1eae51756c3f56 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 28 May 2013 01:02:28 +0200 Subject: [PATCH] Sending custom HTTP status codes to prevent conflicts Fixes #1308 --- .../files/lib/system/exception/AJAXException.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php index c142fc1adc..4318a2241e 100644 --- a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php +++ b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php @@ -77,7 +77,7 @@ class AJAXException extends LoggedException { break; case self::SESSION_EXPIRED: - $statusHeader = 'HTTP/1.0 401 Unauthorized'; + $statusHeader = 'HTTP/1.0 430 Session Expired'; break; case self::INSUFFICIENT_PERMISSIONS: @@ -85,7 +85,7 @@ class AJAXException extends LoggedException { break; case self::BAD_PARAMETERS: - $statusHeader = 'HTTP/1.0 412 Precondition Failed'; + $statusHeader = 'HTTP/1.0 431 Bad Parameters'; $responseData['exceptionID'] = $exceptionID; break; -- 2.20.1