replaced the old and deprecated http.createClient by http.request and also added a statusCode (200) response control