export class StorePausedError extends Error {
  constructor(storeId: string) {
    super(`${storeId}: paused by circuit breaker`);
    this.name = "StorePausedError";
  }
}

export class HttpStatusError extends Error {
  constructor(
    storeId: string,
    url: string,
    public readonly status: number,
  ) {
    super(`${storeId}: HTTP ${status} for ${url}`);
    this.name = "HttpStatusError";
  }
}
