You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 422 (Unprocessable Content) status code indicates that the server understands the content type of the request content (hence a 415 (Unsupported Media Type) status code is inappropriate), and the syntax of the request content is correct, but it was unable to process the contained instructions. For example, this status code can be sent if an XML request content contains well-formed (i.e., syntactically correct), but semantically erroneous XML instructions.
Present State
Currently: status.rs lines 456 to 458:
Recommendation
Use this instead:
Relevant RFCs
Both of the following RFCs define 422 but with a one-word difference:
Potential Confusion: Even though RFC 9110 it is newer, it does not obsolete RFC 4918 (directly nor transitively).
Arguments in Favor of RFC 9110
RFC 9110 is titled "HTTP Semantics" which is a direct fit for this library, whereas RFC 4918 is scoped to WebDAV.
RFC 9110 is an Internet Standard while RFC 4918 is only a Proposed Standard.
MDN uses RFC 9110 for the 422 status code
RFC 9110 is newer (2022 vs. 2007)
RFC 9110: 422: Unprocessable Content
References
The text was updated successfully, but these errors were encountered: