How to use res.status() and req in route handlers
Unanswered
Kokoni posted this in #help-forum
Original message was deleted.
2 Replies
Kokoni
How can I use res.status()? Because NextResponse object doesn't have a status param and how can I use Request?
@Kokoni How can I use res.status()? Because NextResponse object doesn't have a status param and how can I use Request?
return NextResponse.json({}, { status: 400 })