Skip to content

Commit

Permalink
Endre fra 404 til 204 på nytt endepunkt
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvinjevoll committed Sep 7, 2022
1 parent b5e9ed4 commit d0d9b00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ public String getPersonIdForOppfolgingsbruker(@RequestParam("fnr") Fnr fnr) {
authService.sjekkTilgang(fnr);

return arenaService.hentOppfolgingsbrukerSinPersonId(fnr)
.orElseThrow(() -> new ResponseStatusException(HttpStatus.NOT_FOUND));
.orElseThrow(() -> new ResponseStatusException(HttpStatus.NO_CONTENT));
}
}

0 comments on commit d0d9b00

Please sign in to comment.