diff --git a/lib/handlers/patch.js b/lib/handlers/patch.js index 8001c9f5..04bcba1e 100644 --- a/lib/handlers/patch.js +++ b/lib/handlers/patch.js @@ -92,6 +92,7 @@ async function patchHandler (req, res, next) { }) // Send the result to the client + res.sendStatus(resourceExists ? 200 : 201) res.send(result) } catch (err) { return next(err)