try to intercept error on http connection