12
common/resources/client/errors/backend-error-response.ts
Executable file
12
common/resources/client/errors/backend-error-response.ts
Executable file
@@ -0,0 +1,12 @@
|
||||
export interface BackendErrorMessages {
|
||||
[key: string]: string | string[];
|
||||
}
|
||||
|
||||
export interface BackendErrorResponse<T = BackendErrorMessages> {
|
||||
errors?: T;
|
||||
message?: string;
|
||||
exception?: string;
|
||||
action?: {label: string; action: string};
|
||||
status: number;
|
||||
type?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user