BeforeErrorHook: ((error: RequestError) => Promisable<RequestError>)