Fix status code check.