When there's an error, the router will still be needed to load the correct page, such as the 404 or 500 error pages. We need to construct the BaseRouter with the HTTP status code if there is one, so the application's router can react accordingly.