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:
parent
a78143f4f7
commit
af07dffed4
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user