MCPcopy Create free account
hub / github.com/curveball/http-errors / isHttpProblem

Function isHttpProblem

src/index.ts:20–25  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

18
19}
20export function isHttpProblem(e: unknown): e is HttpProblem {
21
22 if (!e) return false;
23 return (e as HttpProblem).title !== undefined && isHttpError(e);
24
25}
26
27export class HttpErrorBase extends Error implements HttpProblem {
28

Callers

nothing calls this directly

Calls 1

isHttpErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…