get the response code from http response body