We have an external Api which return the response in csv format and we have below code in place since long time where in after receiving the response, we store the file in csv f