Error handling

Error handling can be configured on site level and is automatically dependent on the current site and language.

There are currently 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 the error and exception handling since they occur on a much lower level. These are currently not covered by site error handling.

Error Handling

Add custom error handling.

Properties

These properties apply to all error handlers.

errorCode

Datatype
int
Description
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.
Example
404

errorHandler

Datatype
string / enum
Description
Define how to handle these errors. May be Fluid for rendering a Fluid template, Page for fetching content from a page or PHP for a custom implementation.
Example
Fluid