MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / missingQueryParam

Function missingQueryParam

packages/web/src/lib/serviceError.ts:32–38  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

30}
31
32export const missingQueryParam = (name: string): ServiceError => {
33 return {
34 statusCode: StatusCodes.BAD_REQUEST,
35 errorCode: ErrorCode.MISSING_REQUIRED_QUERY_PARAMETER,
36 message: `Missing required query parameter: ${name}`,
37 };
38}
39
40export const requestBodySchemaValidationError = (error: ZodError): ServiceError => {
41 return {

Callers 1

route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected