error handling to http transport and http sockets is added