fix: forward 503 from importer-api as ServiceUnavailableException instead of 400
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user