summaryrefslogtreecommitdiff
path: root/lib/errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/errors.js')
-rw-r--r--lib/errors.js3
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!')
},