gpt4 book ai didi

rfc2616 - 无效 POST 参数的错误代码

转载 作者:行者123 更新时间:2023-12-02 16:49:50 31 4
gpt4 key购买 nike

POST 时返回的正确错误代码是什么请求有一个无效的参数?说:表格需要数据对于某个事件,但提供的日期是过去的日期;或一个表单获取用户注册数据,但提供的名称是一个数字或任何无效的人名。

最佳答案

11.2. 422 Unprocessable Entity

The 422 (Unprocessable Entity) status code means the server
understands the content type of the request entity (hence a
415(Unsupported Media Type) status code is inappropriate), and the
syntax of the request entity is correct (thus a 400 (Bad Request)
status code is inappropriate) but was unable to process the containedinstructions. For example, this error condition may occur if an XML
request body contains well-formed (i.e., syntactically correct), but
semantically erroneous, XML instructions.

(来自 RFC 4918 )

关于rfc2616 - 无效 POST 参数的错误代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7834843/

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