pub type ErrorHandlerFn = fn(Error, &ErrorContext) -> Response;
Signature for custom error handler functions.