How do I find the error page of the site?
LandingPageUtil provides methods to find the 404 page, the 401 page and others
LandingPageUtil has methods to find globally configured pages of the site. For example the "Error page" (404) and the "Login page" (401).
Step 1 - Get an instance of LandingPageUtil
For WebApp/RESTApp - use import:
For Script module - use require: