Fixed response code check