* Throws a NamedUserException on search failure.
*/
public function throwNoMatchesException() {
- @header('HTTP/1.0 404 Not Found');
+ @header('HTTP/1.1 404 Not Found');
if (empty($this->query)) {
throw new NamedUserException(WCF::getLanguage()->get('wcf.search.error.user.noMatches'));
$statusHeader = '';
switch ($errorType) {
case self::MISSING_PARAMETERS:
- $statusHeader = 'HTTP/1.0 400 Bad Request';
+ $statusHeader = 'HTTP/1.1 400 Bad Request';
$responseData['exceptionID'] = $exceptionID;
$responseData['message'] = WCF::getLanguage()->get('wcf.ajax.error.badRequest');
break;
case self::SESSION_EXPIRED:
- $statusHeader = 'HTTP/1.0 409 Conflict';
+ $statusHeader = 'HTTP/1.1 409 Conflict';
break;
case self::INSUFFICIENT_PERMISSIONS:
- $statusHeader = 'HTTP/1.0 403 Forbidden';
+ $statusHeader = 'HTTP/1.1 403 Forbidden';
break;
case self::BAD_PARAMETERS:
- $statusHeader = 'HTTP/1.0 431 Bad Parameters';
+ $statusHeader = 'HTTP/1.1 431 Bad Parameters';
$responseData['exceptionID'] = $exceptionID;
break;
default:
case self::INTERNAL_ERROR:
- //header('HTTP/1.0 418 I\'m a Teapot');
- header('HTTP/1.0 503 Service Unavailable');
+ //header('HTTP/1.1 418 I\'m a Teapot');
+ header('HTTP/1.1 503 Service Unavailable');
$responseData['code'] = self::INTERNAL_ERROR;
$responseData['exceptionID'] = $exceptionID;
public static function redirect($location, $sendStatusCode = false, $temporaryRedirect = true) {
if ($sendStatusCode) {
if ($temporaryRedirect) @header('HTTP/1.1 307 Temporary Redirect');
- else @header('HTTP/1.0 301 Moved Permanently');
+ else @header('HTTP/1.1 301 Moved Permanently');
}
header('Location: '.$location);