diff --git a/apps/bff/src/core/security/services/secure-error-mapper.service.ts b/apps/bff/src/core/security/services/secure-error-mapper.service.ts index d04ae1d9..67a7918c 100644 --- a/apps/bff/src/core/security/services/secure-error-mapper.service.ts +++ b/apps/bff/src/core/security/services/secure-error-mapper.service.ts @@ -205,6 +205,14 @@ export class SecureErrorMapperService { logLevel: "info", }, ], + [ + "ENDPOINT_NOT_FOUND", + { + code: "VAL_003", + publicMessage: "The requested resource was not found", + logLevel: "info", + }, + ], // Business Logic Errors [ @@ -357,6 +365,16 @@ export class SecureErrorMapperService { }, }, + // HTTP/Routing patterns + { + pattern: /^Cannot\s+(GET|POST|PUT|PATCH|DELETE|OPTIONS|HEAD)\s+/i, + mapping: { + code: "VAL_003", + publicMessage: "The requested resource was not found", + logLevel: "info", + }, + }, + // Validation patterns { pattern: /invalid|required|missing|validation|format/i,