这段 Elysia 程序会输出哪些状态码?

来自 Elysia
Elysia 1.4.30 / Bun 1.3.10 / TypeScript 6 入门 2分钟

这段 Elysia 程序会输出哪些状态码?

TypeScript
import { Elysia, t } from 'elysia'

const app = new Elysia().post('/orders', ({ body }) => body.quantity, {
  body: t.Object({ quantity: t.Integer({ minimum: 1 }) })
})

for (const quantity of [2, 0]) {
  const response = await app.handle(new Request('http://local/orders', {
    method: 'POST',
    headers: { 'content-type': 'application/json' },
    body: JSON.stringify({ quantity })
  }))
  console.log(response.status)
}
在试验场中打开
报告错误