 import mx.netmon.NetworkMonitor;
 import mx.resources.IResourceManager;
 import mx.resources.ResourceManager;
+import flash.events.HTTPStatusEvent;
 
 use namespace mx_internal;
 

        msg.faultDetail = resourceManager.getString(
			"messaging", "httpRequestError.details", [ details ]);
        msg.rootCause = event;
        agent.fault(msg, message);
    }


        msg.correlationId = message.messageId;
        msg.faultCode = "Channel.Security.Error";
        msg.faultString = resourceManager.getString(
            "messaging", "securityError");
        msg.faultDetail = resourceManager.getString(
            "messaging", "securityError.details", [ message.destination ]);
        msg.rootCause = event;
        msg.body = URLLoader(event.target).data;
        msg.headers[AbstractMessage.STATUS_CODE_HEADER] = lastStatus;
        agent.fault(msg, message);
    }

