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

@@ -60,7 +60,7 @@ public class AnnotationController : ControllerBase
if (await _mediator.IsSignedAsync(uuid, signature, cancel))
return Problem(statusCode: 409);
else if (await _mediator.AnyHistoryAsync(uuid, new[] { EnvelopeStatus.EnvelopeRejected, EnvelopeStatus.DocumentRejected }, cancel))
return Problem(statusCode: 410);
return Problem(statusCode: 423);
var docSignedNotification = await _mediator
.ReadEnvelopeReceiverAsync(uuid, signature, cancel)