From cdfa8379ffe9b2fbb638656da9a861096ce6a973 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 14 Jun 2017 00:38:34 +0700 Subject: [PATCH] Change text and status of ErrAlreadyExists --- errors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/errors.js b/errors.js index 5d2593d66..9b26a9359 100644 --- a/errors.js +++ b/errors.js @@ -109,9 +109,9 @@ class ErrAuthentication extends APIError { */ class ErrAlreadyExists extends APIError { constructor(existing = null) { - super('authentication error occured', { + super('resource already exists', { translation_key: 'ALREADY_EXISTS', - status: 400 + status: 409 }, { existing });