QUERY method status codes for indirect/redirect response

ref: https://www.ietf.org/archive/id/draft-ietf-httpbis-safe-method-w-body-02.html

Scanning this draft, and in particular section 4.2, I started wondering about an 
indirect response vs a redirected response. Specifically, I was thinking of an 
HTTP 301 (moved permanently) response.  Is this to resubmit the "query" to a 
different resource, or to always revisit the specified resource for a response 
to the same query?

I had to go re-check, but I think the HTTP spec is reasonably clear about this 
(use 303 for indirect response, use 307 or 308 to resubmit the query elsewhere, 
probably avoid 301, 302).  I'm wondering if some (non-normative) discussion of 
this is appropriate?  It strikes me that this method is likely to be used by 
arbitrary non-browser applications, whose authors may not be as deeply steeped 
in HTTP specifics as (say) a browser implementer, and who might benefit from a 
little additional guidance here.  Or at least point a reader at 
https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes ?

#g


-- 
Graham Klyne
mailto:gk@ninebynine.org
http://www.ninebynine.org
Mastodon: @gklyne@indieweb.social
GitHub/Skype: @gklyne

Received on Thursday, 19 September 2024 16:26:28 UTC