fix: improve finish handler error handling for unavailable envelopes

- Update FINISH flow to handle status codes 409 and 423
- Reload page on 423 responses
- Show proper warning when envelope is no longer available (409)
This commit is contained in:
2025-11-14 14:12:21 +01:00
parent f0be1a5b03
commit 8a488d4e71
3 changed files with 6 additions and 3 deletions

View File

@@ -255,7 +255,7 @@ class App {
});
if (!res.ok) {
if (res.status === 403) {
if (res.status === 409) {
Swal.fire({
title: 'Warnung',
text: 'Umschlag ist nicht mehr verfügbar.',
@@ -263,6 +263,9 @@ class App {
})
return false
}
else if (res.status === 423) {
location.reload();
}
else {
throw new Error()
}