How to create a good errorpage

Release 1.3 - ...

Once your configurations point to the right Error Pages, it's important that you spend some time creating pages that point the user in the right direction. It may already be a great frustration to the user that something apparantly went wrong. Try to make something out of this situation by offering alternatives.

HTTP status code

Make sure your error pages themselves return an HTTP status code according to the situation.

Smartsite SXML CopyCode image Copy Code
{response.status(convert.toint(request.query(statusCode, default=500)))}

This prevents the error page from being indexed by search bots, and prevents secondary data such as CSS and Javascript files to be loaded from the redirected (HTML) error page data.

Note that setting the HTTP status in an error page requires 1.3 build 3+.