Change to comparison of the response code