MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createNetworkError

Function createNetworkError

sdk/src/error-utils.ts:63–65  ·  view source on GitHub ↗
(message = 'Network error')

Source from the content-addressed store, hash-verified

61 * Used for connection failures, DNS errors, timeouts, etc.
62 */
63export function createNetworkError(message = 'Network error'): HttpError {
64 return createHttpError(message, 503)
65}
66
67/**
68 * Checks if an HTTP status code is retryable

Callers 2

getUserInfoFromApiKeyFunction · 0.90

Calls 1

createHttpErrorFunction · 0.85

Tested by

no test coverage detected