Skip to content

Commit

Permalink
Merge pull request #101 from IABTechLab/ans-UID2-4643-make-errors-500…
Browse files Browse the repository at this point in the history
…-to-400

change no step 500 error in index.ts to 400
  • Loading branch information
ashleysmithTTD authored Dec 18, 2024
2 parents e6de079 + 78125eb commit 3c95cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const defaultRouteHandler: RequestHandler<{}, {}, z.infer<typeof DefaultRouteReq
await handler(req, res, next);
} else {
logger.log('error', 'no step');
next(createError(500));
next(createError(400));
}
};

Expand Down

0 comments on commit 3c95cf8

Please sign in to comment.