display.loadRemoteImage() has some bad unexpected behavior. First off look at the docs and try to run that code(http://docs.coronalabs.com/api/library/display/loadRemoteImage.html). The remote server returns a 404 error and the API has no idea how to handle it. The code crashes and never hits the event listener, it tries to load the filename given in the API call(helloCopy.png). This shouldn’t happen, if the remote server throws a 403,404 or any error display.loadRemoteImage should still hit the listener. The way it is now, there is nothing you can do about these errors. I can evaluate if event.status == 403 but even when that happens the API wants to load the default image name passed in the API call.
Here is the code example from the Docs, the remote image isn’t there (404 error) so this code crashes because its trying to load the “helloCopy.png” image instead of going to the listener.
local function networkListener( event ) if ( event.isError ) then print ( "Network error - download failed" ) else event.target.alpha = 0 transition.to( event.target, { alpha = 1.0 } ) end print ( "RESPONSE: " .. event.response ) end display.loadRemoteImage( "http://www.coronalabs.com/demo/hello.png", "GET", networkListener, "helloCopy.png", system.TemporaryDirectory, 50, 50 )