Skip to content

Commit 9ed3966

Browse files
authored
Håndtere en gitt feil som not found (#2553)
1 parent ac2b2bf commit 9ed3966

File tree

1 file changed

+3
-0
lines changed
  • domenetjenester/iay/src/main/java/no/nav/foreldrepenger/abakus/registerdata/inntekt/sigrun/klient

1 file changed

+3
-0
lines changed

domenetjenester/iay/src/main/java/no/nav/foreldrepenger/abakus/registerdata/inntekt/sigrun/klient/SigrunRestClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ private static Optional<String> handleResponse(HttpResponse<String> response) {
6464
} else if (status == HttpURLConnection.HTTP_NOT_FOUND) {
6565
LOG.trace("Sigrun: {}", body);
6666
return Optional.empty();
67+
} else if (status == HttpURLConnection.HTTP_INTERNAL_ERROR && body != null && body.contains("PGIF-008")) {
68+
LOG.trace("Sigrun: {}", body);
69+
return Optional.empty();
6770
} else {
6871
if (status == HttpURLConnection.HTTP_UNAUTHORIZED) {
6972
LOG.info("Sigrun unauth");

0 commit comments

Comments
 (0)