I encountered a problem when trying to access both the ResponseBody and HTTP status in my @FeignExceptionConstructor. While I could create multiple exception classes for each HTTP status, my goal is to use a single default exception that can provide access to the ResponseBody AND feign.Response (HTTP status at least) in exception constructor.
I encountered a problem when trying to access both the
ResponseBody
and HTTP status in my@FeignExceptionConstructor
. While I could create multiple exception classes for each HTTP status, my goal is to use a single default exception that can provide access to theResponseBody
ANDfeign.Response
(HTTP status at least) in exception constructor.