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

Function createServerError

sdk/src/error-utils.ts:55–57  ·  view source on GitHub ↗
(message = 'Server error', statusCode = 500)

Source from the content-addressed store, hash-verified

53 * Creates a server error (500 by default, or custom 5xx)
54 */
55export function createServerError(message = 'Server error', statusCode = 500): HttpError {
56 return createHttpError(message, statusCode)
57}
58
59/**
60 * Creates a network error (503 - service unavailable)

Callers 3

validateApiKeyFunction · 0.90
getUserInfoFromApiKeyFunction · 0.90

Calls 1

createHttpErrorFunction · 0.85

Tested by

no test coverage detected