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.