From 5ba1b2301c9bdc73a013790748f5277c55997541 Mon Sep 17 00:00:00 2001 From: Dustin Kut Moy Cheung Date: Tue, 26 May 2026 13:50:39 -0400 Subject: [PATCH] Make the promote-service return a response obj on 404 The default behaviour of Microprofile rest client implementation on Quarkus is to throw an exception when a REST request returns HTTP 404. We want to disable this and instead get back a Response object with the appropriate HTTP status code. --- src/main/resources/application.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 7ad7be1..c9ef746 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -21,6 +21,11 @@ quarkus: secret: your_secret refresh-token-time-skew: 60 early-tokens-acquisition: false + rest-client: + # disable the default mapper so that the object still returns the Response object + # when a 404 is thrown + promote-service-api: + disable-default-mapper: true "%dev": quarkus: