(message: string)
| 40 | } |
| 41 | |
| 42 | export function createNotFoundResponse(message: string): NextResponse { |
| 43 | return NextResponse.json({ error: message }, { status: 404 }) |
| 44 | } |
| 45 | |
| 46 | export function createInternalServerErrorResponse(message: string): NextResponse { |
| 47 | return NextResponse.json({ error: message }, { status: 500 }) |