public function __construct($content = '', $status = 403, $headers = array()) { $content = '<h2>Error 403 - Access Forbidden</h2>'; $content .= '<p>You do not have permission'; $content .= ' to access the page you requested</p>'; parent::__construct($content, $status, $headers); }
public function __construct($content = '', $status = 404, $headers = array()) { $content = '<h2>The page you requested was not found</h2>'; $content .= '<p>You may have clicked an expired link or mistyped the '; $content .= 'address. Some web addresses are case sensitive</p>'; parent::__construct($content, $status, $headers); }
public function __construct($content = '', $status = 200, $headers = []) { parent::__construct('', $status, $headers); $this->setContent($content); }