HTTP 400 (bad request) for logical error, not malformed request syntax

后端 未结 8 797
生来不讨喜
生来不讨喜 2020-12-02 09:11

The HTTP/1.1 specification (RFC 2616) has the following to say on the meaning of status code 400, Bad Request (§10.4.1):

The request could not be unde

8条回答
  •  有刺的猬
    2020-12-02 09:43

    HTTPbis will address the phrasing of 400 Bad Request so that it covers logical errors as well. So 400 will incorporate 422.

    From https://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-18#section-7.4.1
    "The server cannot or will not process the request, due to a client error (e.g., malformed syntax)"

提交回复
热议问题