Simplify error handling for fetching pages