Storing responseStatus from curl