confirm head response code is the same as get response code