public void VerifyImportWebErrorCode(int errorCodeValue)
{
// If errorCode is 2, 4, 5, 6, 8 or 11, R238 can be captured.
Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R238, the value of error code is {0}", errorCodeValue);
// Verify MS-SITESS requirement: MS-SITESS_R238
bool isVerifyR238 = 2 == errorCodeValue || 4 == errorCodeValue || 5 == errorCodeValue || 6 == errorCodeValue || 8 == errorCodeValue || 11 == errorCodeValue;
Site.CaptureRequirementIfIsTrue(
isVerifyR238,
238,
@"[In ImportWeb] If a condition occurs that prevents the server from executing the operation, an error code MUST be included in the response message as specified in section 3.1.4.8.2.2 [error code list: 2, 4, 5, 6, 8, 11].");
}