Using code param in sendResponse