Side navigation
#14012 closed bug (duplicate)
Opened June 12, 2013 01:49AM UTC
Closed June 12, 2013 04:07AM UTC
done/fail/always callbacks not called for HTTP status code 202
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 2.0.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
My server returns status code 202 upon successful DELETE request. My client code makes a jQuery AJAX call to issue DELETE request. I tried all combinations of including done/fail/always and success/error/complete callbacks. I see that done/fail/always callbacks are never called, but success/error/complete are called. I also included a callback for statusCode 202, and I see that was called AFTER the success callback was called.
Since success/error/complete callbacks are deprecated, it seems to me that done/fail/always callbacks should be executed in this scenario instead.
The documentation at http://api.jquery.com/jQuery.ajax/ also does not document when statusCode callback will be invoked.
Attachments (0)
Change History (1)
Changed June 12, 2013 04:07AM UTC by comment:1
resolution: | → duplicate |
---|---|
status: | new → closed |
Duplicate of #14011.