How do you set the response status code in Polka.js framework

前端 未结 0 929
暗喜
暗喜 2021-01-25 06:15

Grr, seems like it should be simple.

Trying:

res.status(500).send({ error: "That type already exists." })

Gets me:

TypeError: res.status is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题