http error system redesigned and improved