Change text and status of ErrAlreadyExists

This commit is contained in:
Chi Vinh Le
2017-06-14 00:38:34 +07:00
parent 7d8f2aa876
commit cdfa8379ff
+2 -2
View File
@@ -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
});