Incus J 10 Posted October 17, 2022 In OverbyteIcsHttpServ, the error procedures such as THttpConnection.Answer404 are called from various places in the code and have hard coded HTML. I'd like to serve my own error document instead. Is there a built in mechanism to supply a custom HTML error document for errors such as 404, 403 ? Share this post Link to post
Angus Robertson 574 Posted October 17, 2022 To send custom error responses you can create overloaded versions of Answer404, etc, in your version of THttpConnection or THttpAppSrvConnection. Angus 1 Share this post Link to post
Incus J 10 Posted October 17, 2022 Perfect - I had missed the virtual nature of Answer404 - Thank you! Share this post Link to post