Better response code parsing from Google. Prefer case statement to lots of if statements