Atozed Forums

Full Version: Tcontent Handler and notify errors to frontend
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a javascript code on frontend, where I call a content handler.  

When using TcontentHandlers, if the handler fail I need to inform the front end that an error occur.
The response of the handler is something as 

Code:
aReply.WriteString(here is the result);


But if there is an error, such as "400 error" or similar , how could I inform the frontend?
What could I put in writestring?

Luiz
Hi Luiz. You can aReply.Code := 400;
(05-10-2019, 11:07 AM)Jose Nilton Pace Wrote: [ -> ]Hi Luiz. You can aReply.Code := 400;

Ho,
Thank you very much