pub unsafe extern "C" fn httpd_register_err_handler(
    handle: *mut c_void,
    error: u32,
    handler_fn: Option<unsafe extern "C" fn(_: *mut httpd_req, _: u32) -> i32>
) -> i32
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