Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v11 here: TYPO3 ELTS.
Error handling
Error handling can be configured on site level and is automatically dependent on the current site and language.
Currently, there are two error handler implementations and the option to write a custom handler:
The configuration consists of two parts:
- The HTTP error status code that should be handled
- The error handler configuration
You can define one error handler per HTTP error code and add a generic one that serves all error pages.
Attention
Exceptions must be handled via error and exception handling, since they occur on a much lower level. These are currently not covered by site error handling.
Properties
These properties apply to all error handlers.
errorCode
-
- type
-
int
- Example
-
404
The HTTP (error) status code to handle. The predefined list contains the most common errors. A free definition of other error codes is also possible. The special value
0
will take care of all errors.