We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f589a20 commit d7b7bd9Copy full SHA for d7b7bd9
lib/handlers/patch.js
@@ -92,6 +92,7 @@ async function patchHandler (req, res, next) {
92
})
93
94
// Send the result to the client
95
+ res.sendStatus(resourceExists ? 200 : 201)
96
res.send(result)
97
} catch (err) {
98
return next(err)
0 commit comments