MCPcopy
hub / github.com/simstudioai/sim / unauthorizedResponse

Function unauthorizedResponse

apps/sim/app/api/v1/admin/responses.ts:58–60  ·  view source on GitHub ↗
(message = 'Authentication required')

Source from the content-addressed store, hash-verified

56// =============================================================================
57
58export function unauthorizedResponse(message = 'Authentication required'): NextResponse {
59 return errorResponse('UNAUTHORIZED', message, 401)
60}
61
62export function forbiddenResponse(message = 'Access denied'): NextResponse {
63 return errorResponse('FORBIDDEN', message, 403)

Callers 2

withAdminAuthFunction · 0.90
withAdminAuthParamsFunction · 0.90

Calls 1

errorResponseFunction · 0.70

Tested by

no test coverage detected