add ValidateStatusCode