MCPcopy Index your code
hub / github.com/simstudioai/sim / folderMutationStatus

Function folderMutationStatus

apps/sim/app/api/folders/route.ts:17–22  ·  view source on GitHub ↗
(errorCode: string | undefined)

Source from the content-addressed store, hash-verified

15const logger = createLogger('FoldersAPI')
16
17function folderMutationStatus(errorCode: string | undefined): number {
18 if (errorCode === 'validation') return 400
19 if (errorCode === 'conflict') return 409
20 if (errorCode === 'not_found') return 404
21 return 500
22}
23
24// GET - Fetch folders for a workspace
25export const GET = withRouteHandler(async (request: NextRequest) => {

Callers 1

route.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected