Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tcontent Handler and notify errors to frontend
#1
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
Reply
#2
Hi Luiz. You can aReply.Code := 400;
Reply
#3
(05-10-2019, 11:07 AM)Jose Nilton Pace Wrote: Hi Luiz. You can aReply.Code := 400;

Ho,
Thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)