What HTTP status response code should I use if the request is missing a required parameter? -


I'm thinking 412 (precondition failure) but could be a better standard? The status code means that the server understands that

position 422 based on the most appropiate

is.

The content type of the request entity (hence a 415 (unsupported media type) status code is inappropriate), and the syntax of the request unit is correct (thus 400 (poor request) status code is inappropriate) The instructions contained in were unable to process, for example, this error condition may occur when an XML request body is well-formed (i.e., the syntax is correct), but meaningfully incorrect, XML instructions.

They say that malicious XML is an example of a bad syntax (calling for 400) a faulty query string appears to fit this, so 400 is a well-formed query-string Does not seem appropriate, which is an ultimate memory.

UPDATE @DavidV correctly states that this idea is for WebDAV, the core is not HTTP, but using some popular non-WebDAV API 422, any better status codes ( ) Are due to the lack of.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -