Fix http resonse error

due to refactoring,
using now response object