MCPcopy Create free account
hub / github.com/dyoshikawa/rulesync / isNotFoundError

Function isNotFoundError

src/lib/fetch.ts:243–252  ·  view source on GitHub ↗

* Check if error is a 404 "not found" error

(error: unknown)

Source from the content-addressed store, hash-verified

241 * Check if error is a 404 "not found" error
242 */
243function isNotFoundError(error: unknown): boolean {
244 if (error instanceof GitHubClientError && error.statusCode === 404) {
245 return true;
246 }
247 // Also handle plain objects with statusCode property (for test mocks)
248 if (hasStatusCode(error) && error.statusCode === 404) {
249 return true;
250 }
251 return false;
252}
253
254/**
255 * Parameters for fetch operation

Callers 1

collectFeatureFilesFunction · 0.85

Calls 1

hasStatusCodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…