使用 ResponseFile 时如何强制 warp 使用 200 以外的状态代码?

How do I force warp to use a status code other than 200 when using ResponseFile?

在尝试生成自定义 404 错误时,我尝试使用 responseFile notFound404 [("Content-Type","text/html")] "404.html" Nothing 进行响应。但是,如果“404.html”出现在我的文件系统中,Warp 将发送状态代码为 200 的数据。

支持 wai 接口的服务器是否期望这种行为?如果是这样,为什么 responseFile 有状态参数?

这看起来像是 Warp 中的一个错误。你能在跟踪器上打开一个问题吗?