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.

Add custom 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.

errorHandler
type

string / enum

Example

Fluid

Define how to handle these errors:

  • Fluid for rendering a Fluid template
  • Page for fetching content from a page
  • PHP for a custom implementation