Replace the expected status code instead of adding it.