From a66dc2abcedbcf1ad407641c1b06c4e2ecd89f4c Mon Sep 17 00:00:00 2001 From: Pedro Yves Fracari Date: Mon, 21 Oct 2024 10:37:53 -0300 Subject: [PATCH] change error code to 400 --- apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts b/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts index c28eddd..053f861 100644 --- a/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts +++ b/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts @@ -123,7 +123,7 @@ const root: FastifyPluginAsync = async (fastify): Promise => { ); if (simulationResult === null) { - reply.code(404).send({ message: 'Build simulation error' }); + reply.code(400).send({ message: 'Build simulation error' }); return; } fastify.log.info(