But following that argumentation a 204 would always be an error since any request expects something (XML by default), no?
--Klaus On 23 Jul., 03:35, Dave Methvin <dave.meth...@gmail.com> wrote: > If the request said it wanted json, but it didn't get json, then it's > an error in my book. Maybe you could turn a 204 into an empty object > but I have a feeling that would be a surprising success case for most > json requests. > > > Perhaps, a solution would be to have the option of defining > > callbacks per status code. > > You could do that yourself with the existing "complete" handler, since > it is passed the xmlhttp object. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---