Add a function to set a custom error page