Hi,
What is the suggested way of handling errors in Delphi when using HTTPApi? Now any exception returns a message ‘Invalid path’.
Thanks,
Hi,
What is the suggested way of handling errors in Delphi when using HTTPApi? Now any exception returns a message ‘Invalid path’.
Thanks,
Hi,
this is SendExceptionsAs500 property of HTTP server.
you can pass custom HTTPApi errors with EROHttpApiException
.
read more at the Adding HttpAPI to a Server (Delphi) article