HTTP-Status 401 (Unauthorized) zum Endpoint EnvelopeKey/{envelopeReceiverId}/Locked hinzugefügt, wenn envelopeReceiverId nicht gefunden wird.

This commit is contained in:
Developer 02 2024-05-29 09:23:09 +02:00
parent 89290c03f9
commit 88da8e4ace

View File

@ -16,7 +16,6 @@ using Microsoft.AspNetCore.Localization;
using System.Text.Encodings.Web; using System.Text.Encodings.Web;
using EnvelopeGenerator.Web.Models; using EnvelopeGenerator.Web.Models;
using EnvelopeGenerator.Application.Resources; using EnvelopeGenerator.Application.Resources;
using System.Text.RegularExpressions;
namespace EnvelopeGenerator.Web.Controllers namespace EnvelopeGenerator.Web.Controllers
{ {
@ -100,6 +99,7 @@ namespace EnvelopeGenerator.Web.Controllers
Fail: IActionResult (messages,notices) => Fail: IActionResult (messages,notices) =>
{ {
_logger.LogNotice(notices); _logger.LogNotice(notices);
Response.StatusCode = StatusCodes.Status401Unauthorized;
return this.ViewEnvelopeNotFound(); return this.ViewEnvelopeNotFound();
}); });
} }