mirror of
https://github.com/rustfs/console.git
synced 2026-08-28 19:47:21 +08:00
9 lines
309 B
TypeScript
9 lines
309 B
TypeScript
export type ApiErrorHandlerCallback = (url?: string) => void | Promise<void>
|
|
|
|
export interface IApiErrorHandler {
|
|
handle401(url?: string): Promise<void>
|
|
handle403(url?: string): Promise<void>
|
|
handleServerError(url?: string): Promise<void>
|
|
handleByStatus(status: number, url?: string): Promise<void>
|
|
}
|