return http data from error callback