fix: forward 503 from importer-api as ServiceUnavailableException instead of 400
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-03 22:15:33 +02:00
parent 941c5f5915
commit 7c382dbf2e
@@ -191,6 +191,9 @@ export class ReceiptImportService {
} catch {
// ignorera parse-fel
}
if (response.status === 503 || response.status === 429) {
throw new ServiceUnavailableException(message);
}
throw new BadRequestException(message);
}