Merge pull request #2767 from akhilmhdh/feat/permission-error

Detail error when permission validation error occurs
This commit is contained in:
Akhil Mohan
2024-11-21 02:00:51 +05:30
committed by GitHub
13 changed files with 205 additions and 41 deletions
@@ -47,6 +47,7 @@ export const DefaultResponseErrorsSchema = {
403: z.object({
statusCode: z.literal(403),
message: z.string(),
details: z.any().optional(),
error: z.string()
}),
500: z.object({