changed http error behavior