Add error handling for block web page