using var to store response status code