Interface: ResourcefulErrorMiddlewareHeaders
Configuration object for custom HTTP headers to be included in error responses. Allows for CORS headers, security headers, API versioning, or any custom headers that should be consistently applied to all error responses.
Example
typescript
const headers: ResourcefulErrorMiddlewareHeaders = {
"X-API-Version": "1.0",
"Access-Control-Allow-Origin": "*",
"X-RateLimit-Remaining": "100",
};Indexable
ts
[key: string]: string