diff --git a/src/api/config/errors/index.ts b/src/api/config/errors/index.ts index a3d14a2..99bacf3 100644 --- a/src/api/config/errors/index.ts +++ b/src/api/config/errors/index.ts @@ -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) }