Skip to content

Commit

Permalink
change error code to 400
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesfracari committed Oct 21, 2024
1 parent 3ceaee7 commit 008a768
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const root: FastifyPluginAsync = async (fastify): Promise<void> => {
params: paramsSchema,
response: {
'2XX': successSchema,
'404': errorSchema,
'400': errorSchema,
},
},
},
Expand All @@ -123,7 +123,7 @@ const root: FastifyPluginAsync = async (fastify): Promise<void> => {
);

if (simulationResult === null) {
reply.code(404).send({ message: 'Build simulation error' });
reply.code(400).send({ message: 'Build simulation error' });
return;
}
fastify.log.info(
Expand Down

0 comments on commit 008a768

Please sign in to comment.