fix http error callback