TWebHttpRequest delivers empty string on file not found, not raising OnError/OnAbort

Hello,

when using the TWebHttpRequest component, there is some strange behaviour:
When I request a file (I have several base64 encoded files in an assets directory) with the httpGET command, it is delivered and everything is fine.
But when the file does not exist, neither the OnAbort, nor the OnError event is executed, but the OnResponse event is executed with an empty string as response.
I think this is not the intended logic...

Best regards,
Meik Stoll

This is intended. When the server returns a "Not found" response (http status 404) , this is a response.
I suggest to handle OnRequestResponse and to check ARequest.req.status = 200 for success.

Ah, OK, this makes sense. Thanks for the quick reply.