diff options
author | Yannick Bungers | 2021-03-29 23:14:14 +0200 |
---|---|---|
committer | GitHub | 2021-03-29 23:14:14 +0200 |
commit | 3a60f069cb85f4a1ffbcd19f8ef33073b98994d9 (patch) | |
tree | ea58b9a7288a0b13f84e6c5fb40134840b9f8ac8 /lib/errors.js | |
parent | bede2530cfea4410515ea462d21304f3caecd746 (diff) | |
parent | dcea082286ce5c41e50f70820c065c677a176fc7 (diff) |
Merge pull request #1084 from hedgedoc/fix/double-freeurl-note-creation
Diffstat (limited to 'lib/errors.js')
-rw-r--r-- | lib/errors.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/errors.js b/lib/errors.js index 950b4cae..599f54b2 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -20,6 +20,9 @@ module.exports = { errorBadRequest: function (res) { responseError(res, '400', 'Bad Request', 'something not right.') }, + errorConflict: function (res) { + responseError(res, '409', 'Conflict', 'This note already exists.') + }, errorTooLong: function (res) { responseError(res, '413', 'Payload Too Large', 'Shorten your note!') }, |