(message: string)
| 32 | * field failed. |
| 33 | */ |
| 34 | export function createBadRequestResponse(message: string): NextResponse { |
| 35 | return NextResponse.json({ error: message }, { status: 400 }) |
| 36 | } |
| 37 | |
| 38 | export function createForbiddenResponse(message: string): NextResponse { |
| 39 | return NextResponse.json({ error: message }, { status: 403 }) |