QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 6

A PUT request creates a resource that had no prior representation. What does RFC 9110 require the origin server to send?

  1. 204 (No Content), since PUT carries the representation already
  2. 201 (Created)Ճիշտ պատասխան
  3. either 201 (Created) or 204 (No Content), at the server's discretion
  4. 200 (OK) with a representation of the new state

Բացատրություն

The requirement is stated as a MUST: creation through PUT is reported with 201. The choice between 200 and 204 applies only in the other branch, where an existing representation was modified.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 6: A PUT request creates a resource that had no prior… · HTTP Semantics · Questena