(message: string)
| 36 | } |
| 37 | |
| 38 | export function createForbiddenResponse(message: string): NextResponse { |
| 39 | return NextResponse.json({ error: message }, { status: 403 }) |
| 40 | } |
| 41 | |
| 42 | export function createNotFoundResponse(message: string): NextResponse { |
| 43 | return NextResponse.json({ error: message }, { status: 404 }) |