Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

error.ini [HTTPError-404]

The settings of [HTTPError-404] in error.ini: HTTPName, HeaderList

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/error/HTTPError-404.md

On this page

error.ini [HTTPError-404]

The block [HTTPError-404] of settings/error.ini, with 2 setting(s).

Definition for the HTTP error code 404.
It's possible to specify more error codes by creating a group called
HTTPError followed by a - (dash) and the HTTP error code.
The group most contain the HTTPName variable, if not the error code
is not issued to the browser.
Note: The HTTPName must be contain the correct string for the
specific HTTP error code.

HeaderList[] adds response headers to the error page, one per entry:
HeaderList[<header name>]=<value>. They are sent after the status lines,
and stored with the page in the content view cache, so a cached error page
sends them again. A name that is not a valid header name, or a value with a
line break, is left out with a warning. HeaderList[Status]=<text> is read
as HTTPName when HTTPName is not set. Empty by default: nothing is added.
Example:
HeaderList[Cache-Control]=public, must-revalidate, max-age=300

Never edit settings/error.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/error.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/error.ini.append.php for one siteaccess,
  • extension/<extension>/settings/error.ini.append.php in an extension (read when the extension is active).

HTTPName

Default: Not Found.

<?php /* #?ini charset="utf-8"?
# settings/override/error.ini.append.php
[HTTPError-404]
HTTPName=Not Found
*/ ?>

HeaderList

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/error.ini.append.php
[HTTPError-404]
# an empty "HeaderList[]" first replaces the shipped list; without it the items are added
HeaderList[]
*/ ?>

Generated by ./console exp:help:examples from settings/error.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x