chore: minor ui improvements

This commit is contained in:
Daniel Hougaard
2025-03-05 22:47:40 +04:00
parent 16c1516979
commit b607429b99
2 changed files with 47 additions and 7 deletions
+8 -1
View File
@@ -46,7 +46,8 @@ export enum ApiErrorTypes {
ValidationError = "ValidationFailure",
BadRequestError = "BadRequest",
UnauthorizedError = "UnauthorizedError",
ForbiddenError = "PermissionDenied"
ForbiddenError = "PermissionDenied",
CustomForbiddenError = "ForbiddenError"
}
export type TApiErrors =
@@ -69,6 +70,12 @@ export type TApiErrors =
details: PureAbility["rules"];
statusCode: 403;
}
| {
reqId: string;
error: ApiErrorTypes.CustomForbiddenError;
message: string;
statusCode: 403;
}
| {
reqId: string;
statusCode: 400;