MCPcopy
hub / github.com/umami-software/umami / badRequest

Function badRequest

src/lib/response.ts:11–18  ·  view source on GitHub ↗
(error?: Record<string, any>)

Source from the content-addressed store, hash-verified

9}
10
11export function badRequest(error?: Record<string, any>) {
12 return Response.json(
13 {
14 error: { message: 'Bad request', code: 'bad-request', status: 400, ...error },
15 },
16 { status: 400 },
17 );
18}
19
20export function unauthorized(error?: Record<string, any>) {
21 return Response.json(

Callers 15

parseRequestFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90
DELETEFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected