RE: Implementing HTTP PUT

<snip>

> Anyway, my real question is what is the proper response to a PUT request. It
> is clear what should go with a 201 Created response, but what type of
> response should be returned with an error and a 200 OK is unclear.

Huh? I'm not sure I understand the question.

A 'PUT' is a request and a '200 OK' or a '201 Created' is a response to that
request. It's obvious you already knew that since you mentioned it in your
question, but the wording of your question makes it unclear to me as to exactly
what you're confused about.

What do you mean by: "What type of RESPONSE should be returned with an error
[RESPONSE] and a 200 OK [RESPONSE]..."? (emphasis mine)

Do you see what I'm getting at here? You're basically asking: "What type of
response should be returned with a response," which needless to say is quite an
odd question for someone to ask. :)

Could you perhaps mean which of the variety of *response HEADERS* should/must
one include in their response to a PUT request??

--
"Fish" (David B. Trout)
   fish@infidels.org

Received on Tuesday, 27 March 2001 03:43:23 UTC