use custom error handling page for debug mode