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

A 201 (Created) response carries no Location header field. Which resource does the 201 identify as the one created?

  1. The target URI of the requestՃիշտ պատասխան
  2. The response is malformed, because Location is mandatory with 201
  3. No resource; the client must issue a follow-up GET to discover it
  4. The URI given in Content-Location, which becomes mandatory in that case

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

The primary created resource is identified by Location when present, and otherwise by the request's target URI, which is the usual situation for a PUT that creates. Location is a SHOULD for POST, not a universal requirement of the status code.

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

Սկսել վարժանքը
Հարց 9: A 201 (Created) response carries no Location header field.… · HTTP Semantics · Questena