next.js/test/integration/api-support/pages/api/status-204.js
status-204.js8 lines226 B
export default function handler(req, res) {
  if (req.query.invalid) {
    // test the warning when content is added for a 204 response
    return res.status(204).json({ hello: 'world' })
  }
  return res.status(204).send()
}
Quest for Codev2.0.0
/
SIGN IN