ID was not an accessible page - on hidden pages although the 404 error handler is configured in the site config
On pages that are configured "hidden" in the page properties users get a "Page Not Found Reason: ID was not an accessible page" error except getting the configured 404 error page.
In the site config we have something like:
errorHandling: - errorCode: '404' errorHandler: Page errorContentSource: 't3://page?uid=22'
So the error handler is configured correctly. But on hidden pages it is not thrown correctly. For pages that do really not exist the correct error page is shown. (ID 22)
Is it our configuration error or is it a bug?