mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 18:15:53 +00:00
feat: request ID support
This commit is contained in:
@@ -50,12 +50,15 @@ export enum ApiErrorTypes {
|
||||
|
||||
export type TApiErrors =
|
||||
| {
|
||||
requestId: string;
|
||||
error: ApiErrorTypes.ValidationError;
|
||||
message: ZodIssue[];
|
||||
statusCode: 403;
|
||||
}
|
||||
| { error: ApiErrorTypes.ForbiddenError; message: string; statusCode: 401 }
|
||||
| { requestId: string; error: ApiErrorTypes.ForbiddenError; message: string; statusCode: 403 }
|
||||
| { requestId: string; error: ApiErrorTypes.UnauthorizedError; message: string; statusCode: 401 }
|
||||
| {
|
||||
requestId: string;
|
||||
statusCode: 400;
|
||||
message: string;
|
||||
error: ApiErrorTypes.BadRequestError;
|
||||
|
||||
Reference in New Issue
Block a user