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.phpfor every siteaccess,settings/siteaccess/<siteaccess>/error.ini.append.phpfor one siteaccess,extension/<extension>/settings/error.ini.append.phpin an extension (read when the extension is active).
HTTPName
Default: Not Found.
# settings/override/error.ini.append.php
[HTTPError-404]
HTTPName=Not Found
*/ ?>HeaderList
Default: an empty list.
# settings/override/error.ini.append.php
[HTTPError-404]
# an empty "HeaderList[]" first replaces the shipped list; without it the items are added
HeaderList[]
*/ ?>Related
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.