Deals with unsuccessul http responses