Merge pull request #17 from NTumurbars/main

Add endpoint not found error mapping to SecureErrorMapperService
This commit is contained in:
NTumurbars 2025-11-25 18:33:00 +09:00 committed by GitHub
commit a45362c6f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,