Skip to content

Commit

Permalink
fixed FeignException check (#2157)
Browse files Browse the repository at this point in the history
Co-authored-by: amoghnaik-hmcts <[email protected]>
Co-authored-by: mikebrownccd <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2022
1 parent 064a38c commit f806785
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ private HttpStatus checkAndRetrieveExceptionStatusCode(final Throwable causeOfEx
HttpStatus httpStatus = null;
if (causeOfException instanceof HttpStatusCodeException) {
httpStatus = HttpStatus.valueOf(((HttpStatusCodeException) causeOfException).getRawStatusCode());
} else if (causeOfException instanceof FeignException) {
} else if (causeOfException instanceof FeignException.FeignClientException
|| causeOfException instanceof FeignException.FeignServerException) {
httpStatus = HttpStatus.valueOf(((FeignException) causeOfException).status());
}

Expand Down

0 comments on commit f806785

Please sign in to comment.