mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-06-07 05:57:41 +00:00
#1 http status changed for case not unique slug text
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
32c16ff663
commit
abf6addb70
1 changed files with 1 additions and 1 deletions
|
@ -11,5 +11,5 @@ class httpError extends Error {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const uniqueKeyError = (msg: string, code = '4001') => {
|
export const uniqueKeyError = (msg: string, code = '4001') => {
|
||||||
return new httpError(msg, 400, code)
|
return new httpError(msg, 422, code)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue