fix lambda for handling 204 status in http client