DOCS-937: fixing error page processing