fix: Enhance exception handling in WebApplication to manage StalePageException and PageExpiredException