export type ApiErrorHandlerCallback = (url?: string) => void | Promise export interface IApiErrorHandler { handle401(url?: string): Promise handle403(url?: string): Promise handleServerError(url?: string): Promise handleByStatus(status: number, url?: string): Promise }