better http error support