Skip to content

Commit

Permalink
fix: error code of bad router response
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmaeuer committed Jun 19, 2023
1 parent a7df9f2 commit 6a9010a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ingest/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a9010a

Please sign in to comment.