From 6a9010af2c8c8c6b5899cee765283e52dd2325f0 Mon Sep 17 00:00:00 2001 From: Rafael M Date: Mon, 19 Jun 2023 15:28:23 +0200 Subject: [PATCH] fix: error code of bad router response --- src/ingest/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ingest/router.js b/src/ingest/router.js index b9f84af0..71354540 100644 --- a/src/ingest/router.js +++ b/src/ingest/router.js @@ -76,7 +76,7 @@ router.get(['/', '/health'], (req, res) => { // set openapi error handler router.use((err, req, res, next) => { - return response.badRequest(req, res, { status: 500 }) + return response.badRequest(req, res, { status: 400 }) }) // export router object to server