SanjivMeher
Mega Patron

I think you missed a bracket in below line for getStatusCode()

var httpStatus = response.getStatusCode;


Please mark this response as correct or helpful if it assisted you with your question.