diff --git a/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts b/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts index c28eddd..82cde99 100644 --- a/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts +++ b/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts @@ -109,7 +109,7 @@ const root: FastifyPluginAsync = async (fastify): Promise => { params: paramsSchema, response: { '2XX': successSchema, - '404': errorSchema, + '400': errorSchema, }, }, }, @@ -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(