feat(annotation): update response status codes for signed/rejected checks

This commit is contained in:
tekh 2025-11-14 14:08:10 +01:00
parent 773721b634
commit f0be1a5b03

View File

@ -58,9 +58,9 @@ public class AnnotationController : ControllerBase
// Again check if receiver has already signed
if (await _mediator.IsSignedAsync(uuid, signature, cancel))
return Problem(statusCode: 403);
return Problem(statusCode: 409);
else if (await _mediator.AnyHistoryAsync(uuid, new[] { EnvelopeStatus.EnvelopeRejected, EnvelopeStatus.DocumentRejected }, cancel))
return Problem(statusCode: 403);
return Problem(statusCode: 410);
var docSignedNotification = await _mediator
.ReadEnvelopeReceiverAsync(uuid, signature, cancel)