Function esp_idf_sys::httpd_register_err_handler

source ยท
pub unsafe extern "C" fn httpd_register_err_handler(
    handle: httpd_handle_t,
    error: httpd_err_code_t,
    handler_fn: httpd_err_handler_func_t,
) -> esp_err_t
Expand description

@brief 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.

@param[in] handle HTTP server handle @param[in] error Error type @param[in] handler_fn User implemented handler function (Pass NULL to unset any previously set handler)

@return

  • ESP_OK : handler registered successfully
  • ESP_ERR_INVALID_ARG : invalid error code or server handle