httpd_register_err_handler() function
Function for registering HTTP error handlers This function maps a handler function to any supported error code given by `httpd_err_code_t`. See prototype `httpd_err_handler_func_t` above for details.
Arguments
handler_fn
User implemented handler function (Pass NULL to unset any previously set handler)
Return value
- ESP_OK : handler registered successfully - ESP_ERR_INVALID_ARG : invalid error code or server handle
httpd_register_err_handler() reads 2 variables:
![]()
httpd_register_err_handler()