From 9ffee33755588b96321f4621593c0af476dc0e59 Mon Sep 17 00:00:00 2001 From: jack-berg <34418638+jack-berg@users.noreply.github.com> Date: Tue, 26 Mar 2024 04:12:26 -0500 Subject: [PATCH] Adservice returns error status code when feature flag is enabled (#1484) --- src/adservice/src/main/java/oteldemo/AdService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {