export class ErrorFetch extends Error { public status: number constructor(status: number, message?: string) { super(message) this.name = 'ErrorFetch' this.status = status } } export default ErrorFetch