do not use http.Response in DefaultLogger when there was an error and log error message