Skip to content

Commit f17145f

Browse files
author
scinorandex
committed
Make not found handler send a 404 response code
1 parent a82a1ae commit f17145f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ app.use("/", errorHandler);
2424

2525
// Not found handler
2626
app.use("*", (_req, res) =>
27-
res.send(
27+
res.status(404).send(
2828
`Welcome to COVID-19 Tracker CLI v${version} by Waren Gonzaga with Wareneutron Developers\n
2929
Please visit: https://warengonza.ga/covid19-tracker-cli\n`
3030
)

0 commit comments

Comments
 (0)