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

Function createUnauthorizedResponse

apps/sim/lib/copilot/request/http.ts:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21export function createUnauthorizedResponse(): NextResponse {
22 return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
23}
24
25/**
26 * Creates a 400 Bad Request response for non-validation errors (business rule

Callers 15

handleUnifiedChatPostFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
GETFunction · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected