I'm attempting to load ads in a Flash video player then download all of the 1x1 Impression gifs linked in the VAST file. Everything works well until I hit this file:
This file returns status code 302 (moved temporarily) with a Location header pointing to http://httpstat.us/503 -- a very strange way of returning a 503 error
When this happens I receive an error #2030 in Flash: "End of file was encountered."
Looking at http://httpstat.us/503, the Content-Length is 23 and exactly matches the length of the returned text ("503 Service Unavailable"), so I don't believe it's a problem with the server response.
In my Flash file I have bound listeners to both SecurityError and IOError events:
loader.addEventListener(Event.OPEN, onOpen);
loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onStatus);
loader.addEventListener(ProgressEvent.PROGRESS, onProgress);
loader.addEventListener(Event.COMPLETE, onComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, onError);
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onError);
loader.load(request);
So my question is: What am I doing wrong? How am I supposed to detect and handle status code 503 in Flash?