Added $log to http error intercept