fix: Schema validation errors correctly returned as 422 (#2828)

* fix: Schema validation errors correctly returned as 422
This commit is contained in:
McPizza
2024-12-03 18:12:29 +01:00
committed by GitHub
parent d3523ed1d6
commit 7728a4793b
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ export type TApiErrors =
requestId: string;
error: ApiErrorTypes.ValidationError;
message: ZodIssue[];
statusCode: 401;
statusCode: 422;
}
| {
requestId: string;