#1 http status changed for case not unique slug text

Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
Benny Samir Hierl 2022-02-05 09:56:15 +01:00
parent 32c16ff663
commit abf6addb70

View file

@ -11,5 +11,5 @@ class httpError extends Error {
}
export const uniqueKeyError = (msg: string, code = '4001') => {
return new httpError(msg, 400, code)
return new httpError(msg, 422, code)
}