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

Function createInternalErrorResponse

shared/error.ts:287–295  ·  view source on GitHub ↗
(
    error: Error,
    status: ContentfulStatusCode,
    timestamp: string,
)

Source from the content-addressed store, hash-verified

285}
286
287function createInternalErrorResponse(
288 error: Error,
289 status: ContentfulStatusCode,
290 timestamp: string,
291): ErrorResponse {
292 return createErrorResponse(error, status, timestamp, {
293 name: error.name,
294 });
295}
296
297function createUpstreamErrorResponse(
298 error: UpstreamError,

Callers 1

handleErrorFunction · 0.85

Calls 1

createErrorResponseFunction · 0.85

Tested by

no test coverage detected