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

Function forbiddenResponse

apps/sim/app/api/v1/admin/responses.ts:62–64  ·  view source on GitHub ↗
(message = 'Access denied')

Source from the content-addressed store, hash-verified

60}
61
62export function forbiddenResponse(message = 'Access denied'): NextResponse {
63 return errorResponse('FORBIDDEN', message, 403)
64}
65
66export function notFoundResponse(resource: string): NextResponse {
67 return errorResponse('NOT_FOUND', `${resource} not found`, 404)

Callers

nothing calls this directly

Calls 1

errorResponseFunction · 0.70

Tested by

no test coverage detected