feat: add envelope delete command and API endpoint

This commit is contained in:
2026-09-25 11:31:40 +02:00
parent 435be882c9
commit 4449743105
9 changed files with 214 additions and 3 deletions

View File

@@ -69,6 +69,11 @@ public class ExceptionHandlingMiddleware
message = notFoundEx.Message;
break;
case ForbiddenException forbiddenEx:
context.Response.StatusCode = (int)HttpStatusCode.Forbidden;
message = forbiddenEx.Message;
break;
default:
logger.LogError(exception, "Unhandled exception occurred.");
context.Response.StatusCode = (int)HttpStatusCode.InternalServerError;