From af07dffed46921ecfaa4ad4990922024cf259cec Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Sat, 27 May 2023 14:55:17 +0200 Subject: [PATCH] fix: hard code not found error to 404 in app --- src/lib/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/app.ts b/src/lib/app.ts index c6866c9059..5a9eccd322 100644 --- a/src/lib/app.ts +++ b/src/lib/app.ts @@ -190,7 +190,7 @@ export default async function getApp( const error = new NotFoundError( `The path you were looking for (${baseUriPath}/api${req.path}) is not available.`, ); - res.status(error.statusCode).send(error); + res.status(404).send(error); return; });