MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / serverError

Function serverError

packages/http-routes/src/errors.ts:78–80  ·  view source on GitHub ↗
(message = 'Internal server error')

Source from the content-addressed store, hash-verified

76}
77
78export function serverError(message = 'Internal server error'): ApiError {
79 return new ApiError(ApiErrorCode.SERVER_ERROR, message)
80}
81
82export function importInProgress(): ApiError {
83 return new ApiError(ApiErrorCode.IMPORT_IN_PROGRESS, 'Another import is already in progress')

Callers 2

startInternalServerFunction · 0.90
createServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected