1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

fix: hard code not found error to 404 in app

This commit is contained in:
Christopher Kolstad 2023-05-27 14:55:17 +02:00
parent a78143f4f7
commit af07dffed4
No known key found for this signature in database
GPG Key ID: D9041DC670F032F3

View File

@ -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;
});