[Cosmo-dev] CMP 204 responses
Brian Moseley
bcm at osafoundation.org
Tue Feb 6 12:13:30 PST 2007
On 2/1/07, Travis Vachon <travis at osafoundation.org> wrote:
> Modify User (PUT /cmp/user/<username>)
> Delete Account (DELETE /cmp/user/<username>)
> Delete Multiple Accounts (POST /cmp/user/delete)
> Activate Account (POST /cmp/activate/<username>)
> Modify Account (PUT /cmp/account)
>
> In the case of the two "modify" actions, we would return the updated
> user representation.
agree.
> For the other three, I imagine we would return 200s with empty
> bodies. I'm by no means set in that opinion however, so other
> suggestions would be welcome.
are you able to examine arbitrary response headers with xhr? if so,
why not use a custom response header to unambiguously distinguish
successful 204 responses? in other words, continue to return 204 as
normal, and include another header (write it in the same filter that
processes the POST-tunneling request header?) that the broken browsers
can look for to see that the request succeeded.
More information about the cosmo-dev
mailing list