gpt4 book ai didi

rest - 404邮件上的邮件正文

转载 作者:行者123 更新时间:2023-12-03 13:21:03 24 4
gpt4 key购买 nike

我正在与一位同事聊天,由于某种原因,该脚本是从头开始编写一个框架的,只是因为它无法自动解码404 HTTP数据包上的消息正文。

他说他遵循REST原则。我的猜测是404 HTTP数据包上的消息正文违反了这些原则,但是我不确定。

如果有人对此有意见,请回答:)

最佳答案

如果使用Web浏览器转到http://www.google.com/unknown,则将获得404状态代码和实体主体。

实体实体返回404的情况很普遍。

如果您在HTTPbis spec中查看400个错误的描述,您将看到

the server SHOULD include a representation containing an
explanation of the error situation, and whether it is a temporary or
permanent condition.

关于rest - 404邮件上的邮件正文,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4940681/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com