From 9b60e759c9797fbb4b0b32c919c8238854f6a358 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 28 Apr 2013 09:30:31 +1000 Subject: [PATCH] Added configuration HTTP STATUS codes --- application/classes/HTTP/Exception/404.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/classes/HTTP/Exception/404.php b/application/classes/HTTP/Exception/404.php index 7bdd5fa..0f976f2 100644 --- a/application/classes/HTTP/Exception/404.php +++ b/application/classes/HTTP/Exception/404.php @@ -46,7 +46,7 @@ class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 { // Process our redirection options if (preg_match('/^http[s]?:\/\//',$ro->redirect)) { - $response->status(302); + $response->status($ro->http_status ? $ro->http_status : 302); $response->headers('Location',$ro->redirect); } elseif (preg_match('/^file:\/\/(.*)$/',$ro->redirect,$matches) AND file_exists($matches[1])) {