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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user