Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
506 B
Raw Blame
export type FetchPageErrorCode =
  | 'invalid_url'
  | 'invalid_max_chars'
  | 'destination_blocked'
  | 'redirect_limit'
  | 'deadline_exceeded'
  | 'response_too_large'
  | 'unsupported_encoding'
  | 'upstream_failure'
  | 'busy'
  | 'cancelled'
  | 'internal_error'

/** Public errors contain no upstream URL, address, response body or native error. */
export class FetchPageError extends Error {
  constructor(readonly code: FetchPageErrorCode) {
    super(code)
    this.name = 'FetchPageError'
  }
}