if (result.isSuccess()) {
return false;
}
final Throwable testException = result.getThrowable();
final RequestFailedException requestFailedException;
if (testException instanceof RequestFailedException) {
requestFailedException = (RequestFailedException) testException;
for (Http.Status status : statuses) {
if (status.equals(requestFailedException.getStatusCode())) {
result.setStatus(ITestResult.SKIP);
return true;
}
}
}