import { NextResponse } from 'next/server' export function createErrorResponse(error: string, status: number, code?: string) { return NextResponse.json( { error, code: code || error.toUpperCase().replace(/\s+/g, '_'), }, { status } ) } export function createSuccessResponse(data: any) { return NextResponse.json(data) }