diff --git a/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts b/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts index 160546c..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: 'Token holders not found' }); + reply.code(400).send({ message: 'Build simulation error' }); return; } fastify.log.info(