diff --git a/src/adservice/src/main/java/oteldemo/AdService.java b/src/adservice/src/main/java/oteldemo/AdService.java index 75c50802e3..4bdd81ac86 100644 --- a/src/adservice/src/main/java/oteldemo/AdService.java +++ b/src/adservice/src/main/java/oteldemo/AdService.java @@ -182,7 +182,7 @@ public void getAds(AdRequest req, StreamObserver responseObserver) { adRequestTypeKey, adRequestType.name(), adResponseTypeKey, adResponseType.name())); if (getFeatureFlagEnabled(ADSERVICE_FAILURE)) { - throw new StatusRuntimeException(Status.RESOURCE_EXHAUSTED); + throw new StatusRuntimeException(Status.UNAVAILABLE); } if (getFeatureFlagEnabled(ADSERVICE_MANUAL_GC_FEATURE_FLAG)) {