mirror of
https://github.com/wassname/talk.git
synced 2026-10-27 13:20:15 +08:00
Change text and status of ErrAlreadyExists
This commit is contained in:
1 parent
7d8f2aa876
commit
cdfa8379ff
1 file changed
+2
-2
@@ -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
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user