public function display_header() { switch ($this->code) { case '404': header("HTTP/1.1 404 Not Found"); break; default: header("HTTP/1.1 500 Internal Server Error"); } }