feat: add cache to getAssoInfo

This commit is contained in:
2025-11-12 16:15:40 +01:00
parent 26f56006f6
commit cc5534ef00
2 changed files with 4 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ public class AssoEndpoints {
return stateIdService.get_status(stateId).onFailure().transform(throwable -> {
if (throwable instanceof WebApplicationException exception) {
if (exception.getResponse().getStatus() == 404)
return new DNotFoundException("Service momentanément indisponible");
if (exception.getResponse().getStatus() == 400)
return new DNotFoundException("Asso introuvable");
}
return throwable;