Minor changes in handling of http responses.