Line 235 in /home/cloudcre/sites/pg/framework/control/HTTPResponse.php
226 $line = $file = null; 227 if(!headers_sent($file, $line)) { 228 header($_SERVER['SERVER_PROTOCOL'] . " $this->statusCode " . $this->getStatusDescription()); 229 foreach($this->headers as $header => $value) { 230 header("$header: $value", true, $this->statusCode); 231 } 232 } else { 233 // It's critical that these status codes are sent; we need to report a failure if not. 234 if($this->statusCode >= 300) { 235 user_error("Couldn't set response type to $this->statusCode because of output on line $line of $file", E_USER_WARNING); 236 } 237 } 238 239 // Only show error pages or generic "friendly" errors if the status code signifies 240 // an error, and the response doesn't have any body yet that might contain 241 // a more specific error description.