summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--framework/Exceptions/TErrorHandler.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 3e052b58..ce348afe 100644
--- a/HISTORY
+++ b/HISTORY
@@ -11,6 +11,7 @@ CHG: Active Record many-to-many relationship change from self::HAS_MANY to self:
CHG: Active Record no longer automatically performs adding/removing/updating related objects (Qiang)
CHG: TJavaScript::encode() will encode data as a list if integer indices are detected (Qiang)
ENH: Ticket#722 - Add Read Only capabilities to TInPlaceTextBox (Christophe)
+ENH: Ticket#743 - Added status code header in HTTP response when in error (Qiang)
ENH: Active Record supports multiple foreign references of the same table (Wei)
ENH: Added TDbCommand.queryColumn() (Qiang)
ENH: Active Record now supports implicitly declared related properties (Qiang)
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index 0eeea9ce..30ee3f4c 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -165,6 +165,7 @@ class TErrorHandler extends TModule
'%%Version%%' => $version,
'%%Time%%' => @strftime('%Y-%m-%d %H:%M',time())
);
+ header("HTTP/1.0 $statusCode ".$exception->getErrorMessage());
echo strtr($content,$tokens);
}