Skip to content

Commit

Permalink
Fix: not implemented to not found
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed Mar 18, 2024
1 parent 00db1cb commit 5ba2161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/middlewares/errorMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const errorHandler = (err, req, res, next) => {
// eslint-disable-next-line no-unused-vars
export const notFound = (req, res, next) => {
//501 if endpoint does not exist
const error = new Error("Not Implemented");
error.status = 501;
const error = new Error("Not Found");
error.status = 404;
next(error);
};

0 comments on commit 5ba2161

Please sign in to comment.