esp_http_server: How do I override built-in 404 handler?
esp_http_server: How do I override built-in 404 handler?
I'm using esp_http_server in a esp32-cam. I want to do some processing when I return a 404. The library seems to be returning the 404 responses without using my code. How can I handle the 404 and override the built-in one?
-
- Posts: 75
- Joined: Fri Dec 04, 2020 9:56 pm
Re: esp_http_server: How do I override built-in 404 handler?
You can register your own error handler with the httpd_register_err_handler function.
Re: esp_http_server: How do I override built-in 404 handler?
Thanks. I really did try to figure it out in the docs.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 111 guests