MCPcopy Create free account
hub / github.com/pollinations/pollinations / constructor

Method constructor

shared/error.ts:58–65  ·  view source on GitHub ↗
(status: ContentfulStatusCode, options?: UpstreamErrorOptions)

Source from the content-addressed store, hash-verified

56 public readonly errorCode?: string;
57
58 constructor(status: ContentfulStatusCode, options?: UpstreamErrorOptions) {
59 super(status, options);
60 this.requestUrl = options?.requestUrl;
61 this.requestBody = options?.requestBody;
62 this.upstreamStatus = options?.upstreamStatus;
63 this.responseBody = options?.responseBody;
64 this.errorCode = options?.errorCode;
65 }
66}
67
68export async function ensureUpstreamOk(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected