Error handlers added for all pages