1223

1223

[1] EnhanceIE.com - Internet Explorer Bugs ( 版) <http://www.enhanceie.com/ie/bugs.asp>

IE0013: IE XMLHTTP implementation turns 204 response code into bogus 1223 status code

Described here http://dev.jquery.com/ticket/1450, the XMLHTTPRequest object in IE will return a status code of 1223 and drop all response headers if the server returns a HTTP/204 No Content response. 

This is caused by an internal design artifact of URLMon (binding returns Operation Aborted (1223) if the server returns no content in response to a request).

Repros in IE9 and earlier. Update: Fixed in IE10.

Workaround: Treat "1223" as equivalent to a 204.  Note: HTTP headers remain unavailable in this case.

[2] Internet Explorer 10 Consumer Preview Minor Changes List - IEInternals - Site Home - MSDN Blogs ( 版) <http://blogs.msdn.com/b/ieinternals/archive/2012/03/01/ie10-beta-consumer-preview-minor-changes-changelist.aspx>

XMLHttpRequest no longer fails with an “1223” error when a HTTP/204 is returned by a server.

[3] javascript - MSIE Returns status code of 1223 for Ajax Request - Stack Overflow ( 版) <http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request>

[4] #1450 (IE mangles HTTP response status code 204 to 1223) – jQuery Core - Bug Tracker ( 版) <http://bugs.jquery.com/ticket/1450>