From cbede1c1a3dd21f62e04f273e11aeda57a565de8 Mon Sep 17 00:00:00 2001 From: Christian Dupuis Date: Mon, 15 Oct 2018 16:23:59 +0200 Subject: [PATCH] Change response code from 404 to 200 --- lib/sdm/configuration/configureLocal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sdm/configuration/configureLocal.ts b/lib/sdm/configuration/configureLocal.ts index 9abaef5d..6daadc8a 100644 --- a/lib/sdm/configuration/configureLocal.ts +++ b/lib/sdm/configuration/configureLocal.ts @@ -197,7 +197,7 @@ async function configureWebEndpoints(configuration: LocalSoftwareDeliveryMachine app.post("/atomist/link-image/teams/:team", async (req, res) => { const event = automationClientInstance().automations.automations.events.find(e => e.name === "FindArtifactOnImageLinked"); if (!event) { - return res.status(404).send(`Event 'FindArtifactOnImageLinked' not found`); + return res.status(200).send(`Event 'FindArtifactOnImageLinked' not found`); } const payload = req.body; @@ -235,7 +235,7 @@ async function configureWebEndpoints(configuration: LocalSoftwareDeliveryMachine app.post("/atomist/build/teams/:team", async (req, res) => { const event = automationClientInstance().automations.automations.events.find(e => e.name === "InvokeListenersOnBuildComplete"); if (!event) { - return res.status(404).send(`Event 'InvokeListenersOnBuildComplete' not found`); + return res.status(200).send(`Event 'InvokeListenersOnBuildComplete' not found`); } const body = req.body;