diff --git a/src/server.ts b/src/server.ts index f39aa7d..bc34398 100644 --- a/src/server.ts +++ b/src/server.ts @@ -52,8 +52,8 @@ app.use((_request: express.Request, response: express.Response) => { // non-404 error handler LOG_INFO('Creating non-404 status handler'); -app.use((error: any, _request: express.Request, response: express.Response, _next: express.NextFunction) => { - const status = error.status || 500; +app.use((_error: unknown, _request: express.Request, response: express.Response, _next: express.NextFunction) => { + const status = 500; response.type('application/xml'); response.status(404);