Skip to content

Commit

Permalink
fix: hard code not found error to 404 in app
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed May 27, 2023
1 parent a78143f commit af07dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/app.ts
Expand Up @@ -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;
});

Expand Down

0 comments on commit af07dff

Please sign in to comment.