Added ERROR_PAGE and ERROR_PAGE_KEY for error page handling.