From: Alexander Ebert Date: Mon, 27 May 2013 23:02:28 +0000 (+0200) Subject: Sending custom HTTP status codes to prevent conflicts X-Git-Tag: 2.0.0_Beta_1~32^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a44cd66e654489f97768e15bcb1eae51756c3f56;p=GitHub%2FWoltLab%2FWCF.git Sending custom HTTP status codes to prevent conflicts Fixes #1308 --- 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;