Index: /branches/version-2_5-dev/data/class/SC_Response.php
===================================================================
--- /branches/version-2_5-dev/data/class/SC_Response.php	(revision 19922)
+++ /branches/version-2_5-dev/data/class/SC_Response.php	(revision 19924)
@@ -37,5 +37,5 @@
     var $contentType;
     var $body;
-    var $statuscode;
+    var $statusCode;
     var $header = array();
 
@@ -61,4 +61,7 @@
         foreach ($this->header as $name => $head){
             header($name.': '.$head);
+        }
+        if (strlen($this->statusCode) >= 1) {
+            $this->sendHttpStatus($this->statusCode);
         }
     }
@@ -190,6 +193,6 @@
     }
 
-    function setStatus($sc = 202) {
-        $this->statuscode = $sc;
+    function setStatusCode($statusCode = null) {
+        $this->statusCode = $statusCode;
     }
 
@@ -197,5 +200,5 @@
      * HTTPステータスコードを送出する。
      *
-     * @param integer $code HTTPステータスコード
+     * @param integer $statusCode HTTPステータスコード
      * @return void
      * @author Seasoft (新規作成)
@@ -209,5 +212,5 @@
      * @static
      */
-    function sendHttpStatus($code) {
+    function sendHttpStatus($statusCode) {
         $protocol = $_SERVER['SERVER_PROTOCOL'];
         $httpVersion = (strpos($protocol, '1.1') !== false) ? '1.1' : '1.0';
@@ -261,11 +264,11 @@
             509 => 'Bandwidth Limit Exceeded'           // 帯域幅制限超過
         );
-        if (isset($messages[$code])) {
+        if (isset($messages[$statusCode])) {
             if ($httpVersion !== '1.1') {
                 // HTTP/1.0
                 $messages[302] = 'Moved Temporarily';
             }
-            header("HTTP/{$httpVersion} {$code} {$messages[$code]}");
-            header("Status: {$code} {$messages[$code]}", true, $code);
+            header("HTTP/{$httpVersion} {$statusCode} {$messages[$statusCode]}");
+            header("Status: {$statusCode} {$messages[$statusCode]}", true, $statusCode);
         }
     }
