Actually webapps.jsm is quite strict. (I'm not completely sure it is right)
http://mxr.mozilla.org/mozilla-central/source/dom/apps/src/Webapps.jsm#1774
The only codes it accepts are 200 and 304...