u
This commit is contained in:
@@ -19,6 +19,8 @@ function entityErrorStatus(error) {
|
||||
if (error.message === 'Name required') return 400;
|
||||
if (error.message === 'Number required') return 400;
|
||||
if (error.message === 'Number already in use') return 409;
|
||||
if (error.message === 'Entity in use') return 409;
|
||||
if (error.message === 'Supplier in use') return 409;
|
||||
if (error.message === 'Invalid customergroupId') return 400;
|
||||
if (error.message === 'Invalid role') return 400;
|
||||
return 500;
|
||||
|
||||
Reference in New Issue
Block a user